Download presentation
Presentation is loading. Please wait.
Published byIrene Doyle Modified over 9 years ago
1
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql
3
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
4
Select Network & Security > Key Pairs
5
Create new key pair
6
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!
7
Now select Network & Security > Security Groups
8
Choose any name: a good one might be "myaccountname-security-group". Type in a description like what is shown.
9
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.
10
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.
11
This shows what rules you should probably have. Once all of these have been added; click "Create".
12
Click the "Images" tab Then launch an instance of the "cs402 web server"
14
Select your key:pair and your security group.
15
This is what you will see right away. Be patient and wait.
16
This is what you will see after a short time. Still be patient.
17
Ahaa! Now the server is running.
18
See if you can connect to your server. Fire up your favorite web browser and type in "http://YOUR- PUBLIC-IP-ADDRESS:8080"
19
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.
20
WINDOWS ONLY : Download PuTTy Visit http://www.putty.org and select the "You can download PuTTY here" link.
21
WINDOWS ONLY : Download PuTTy Download the "Windows installer for everything except PuTTYtel"
22
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" file C.Click "Open" 3
23
Select the "Save private key" button. This will give a warning. You can ignore the warning.
24
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.
25
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!
26
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 " Run the following program: "ssh –i root@IP_ADDRESS
27
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 :(
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.