eucalyptus virtual machines running maven, tomcat, and mysql

27
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Upload: irene-doyle

Post on 25-Dec-2015

237 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

EucalyptusVirtual Machines RunningMaven, Tomcat, and Mysql

Page 2: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql
Page 3: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Your account name will be your first two initials and full last name unless you don't have a middle name in the UWL system – then just use your first initial and full last name.

Your password is your "Campus Id". This will usually start with either an 8 or a 9

Page 4: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Select Network & Security > Key Pairs

Page 5: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Create new key pair

Page 6: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Choose any name that you want, then click the "Create and download" button. Make sure to

save the "pem" file. Don't loose this file!

Page 7: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Now select Network & Security > Security Groups

Page 8: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Choose any name: a good one might be "myaccountname-security-group". Type in a description like what is shown.

Page 9: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Select the "Rules" tab and begin to add rules. You will want to add a rule for http, https, mysql, ssh and a couple of others.

Page 10: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Here is a rule for SSH. After you've filled in the protocol, port range, and IP address, select the "Add another rule" button. DON'T SELECT CREATE UNTIL YOU"VE ADDED ALL THE RULES YOU NEED.

Page 11: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

This shows what rules you should probably have. Once all of these have been added; click "Create".

Page 12: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Click the "Images" tab

Then launch an instance of the "cs402 web server"

Page 13: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql
Page 14: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Select your key:pair and your security group.

Page 15: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

This is what you will see right away. Be patient and wait.

Page 16: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

This is what you will see after a short time. Still be patient.

Page 17: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Ahaa! Now the server is running.

Page 18: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

See if you can connect to your server. Fire up your favorite web browser and type in "http://YOUR-PUBLIC-IP-ADDRESS:8080"

Page 19: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Changing the Tomcat admin password

You should now log onto your virtual linux machine and configure Tomcat so that you are the only one who can control Tomcat.

SSH is a program that allows you to securely connect from your laptop (or desktop) machine to your virtual unix box (or any other box that supports ssh).

The steps you will go through are different depending on whether your laptop is a windows box (there are a lot of steps) or a Mac (there are just a couple of easy steps)

The next few slides will be different depending upon your system.

Page 20: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

WINDOWS ONLY : Download PuTTy

Visit http://www.putty.org and select the "You can download PuTTY here" link.

Page 21: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

WINDOWS ONLY : Download PuTTy

Download the "Windows installer for everything except PuTTYtel"

Page 22: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Once installed, Click the absurd little Windows-start-button in the bottom left of your screen and type "puttygen" into the search box and then enter. This start the "PuTTY Key Generator" program that is used to convert the "pem" file you downloaded earlier into a format that "PuTTY" can understand.

1

Once the "PuTTY Key Generator" is running. Click "load"

2

Find the "pem" file that downloaded to your computer earlier in this process.

A. Select "All Files" B. Locate your "pem" fileC. Click "Open"

3

Page 23: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Select the "Save private key" button. This will give a warning. You can ignore the warning.

Page 24: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

Now you need to run PuTTY. Start the program and enter the IP address of your virtual machine for the "host name". Then expand the SSH option on the left and find the Auth configuration. In the field labeld "Private key file for authentication", you should browse and select your "ppk" file.

Page 25: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

When you select "open", PuTTY will open a secure (encrypted) channel with your virtual server and log you in as "root" You will see a terminal window similar to the above. Congratulations; you made it!

Page 26: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

MAC USERS ONLY : HOW TO LOG INTO YOUR VIRUTAL SERVER

SSH is already installed and Macs understand pem files directly. This makes things pretty simple.

Open a terminal window and navigate to the directory containing your pem file.

Execute the following command: "chmod 700 <PEM_FILE>"

Run the following program: "ssh –i <PEM_FILE> root@IP_ADDRESS

Page 27: Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql

execute:cd /usr/share/apache-tomcat-7.0.42/conf

edit the file tomcat-users.xml with either emacs or VI. Change the "admin" password to a password of your liking. That’s all; of course you might have to do some research to learn VI or emacs :(