Coding Bootcamp: Setting-up a Java Web-Server at okeanos

Today's objectives

Today's objective


~okeanos - an Ocean of resources!

Create your first Virtual Machine!

Creating a VM - Step 1 (Image)

Creating a VM - Step 2 (Flavor)

Creating a VM - Step 3 (Networking)

Creating a VM - Step 4 (Personalize)

Creating a VM - Step 5 (Confirm)

Storing the temporary password

It's alive! - details of your system

Congratulations, your system is up and running!

Connect to your VM

For Windows, download and run Putty

Connect to your VM (2)

Am I connected?

Security - our first priority!

Update your system

Update your system (2)

Update your system (3)

MySQL server

Install a Web-Server and a MySQL web-manager

Configure phpMyAdmin

Configure phpMyAdmin (2)

Connect to your MySQL server remotely

Connect to your MySQL server remotely (2)

Download Java JDK & Apache Tomcat

Install Apache Tomcat

Configure Apache Tomcat

[Unit]
Description=Apache Tomcat Web Application Container
After=network.target

[Service]
Type=forking

Environment=JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre
Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'
Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom'

ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh

User=tomcat
Group=tomcat
UMask=0007
RestartSec=10
Restart=always

[Install]
WantedBy=multi-user.target

Configure Apache Tomcat (2)

Configure Apache Tomcat (3)


Configure Apache Tomcat (4)

Configure Apache Tomcat (5)

Configure Apache Tomcat (6)

Testing Apache Tomcat

Export your local database

Export your local database (2)

Upload your database

Upload your database (2)

Upload your database (3)

Export your Java Web Application

Export your Java Web Application (2)

Deploy your Java Web Application

Run your Java-Web Application

Run your Java-Web Application (2)

Hands-on! Exercise

Further reading - dive deeper!


Creative Commons Licence
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.