test
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
test [2017/07/23 16:51] – walkeradmin | test [2017/07/23 17:55] – walkeradmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Creating an Amazon AWS EC2 Instance ====== | ||
+ | <color darkorange> | ||
\\ | \\ | ||
\\ | \\ | ||
---- | ---- | ||
- | ==== Creating an EC2 Instance | + | ==== Introduction |
\\ | \\ | ||
This guide assumes that you have created an Amazon account to be able to access the Amazon Web Services (AWS) pages, and that you have successfully logged in. | This guide assumes that you have created an Amazon account to be able to access the Amazon Web Services (AWS) pages, and that you have successfully logged in. | ||
Line 146: | Line 148: | ||
\\ | \\ | ||
Once installed, run MobaXterm. | Once installed, run MobaXterm. | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | At the top of the page, select <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | Then select <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | The SSH Page will open and we have to enter the following information. | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | **Remote Host:** This is the IP Address of your EC2 Instance. | ||
+ | **Advanced Settings:** Click this tab, select< | ||
+ | \\ | ||
+ | \\ | ||
+ | Click <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | MobaXterm will now connect to your EC2 instance, using your key pair to authenticate. | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | You will have to enter a password. The default password is <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | Once you enter the password you should be at the console. | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | You can now enter standard Linux commands, that's it, you are now connected to your EC2 instance. | ||
\\ | \\ | ||
\\ | \\ | ||
- | + | ---- | |
- | + | ==== Install the Web Server ==== | |
+ | \\ | ||
+ | As this example is a simple web server, lets install a web server and give it a little test. | ||
+ | \\ | ||
+ | \\ | ||
+ | First thing to do is to navigate to the IP Address of you EC2 instance, to ensure there is nothing already running. | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | You should see that there is nothing on this IP Address. | ||
+ | \\ | ||
+ | \\ | ||
+ | So we can install a web server. Open MobaXterm and from the command line enter: | ||
+ | \\ | ||
+ | sudo yum install httpd -y | ||
+ | \\ | ||
+ | \\ | ||
+ | This will install Apache web server, and configure the basic system files required for it to run. | ||
+ | \\ | ||
+ | \\ | ||
+ | Once installed, you will have to start the Apache service. You can do this with: | ||
+ | \\ | ||
+ | sudo service httpd start | ||
+ | \\ | ||
+ | You should see a confirmation that looks like: Starting httpd: | ||
+ | \\ | ||
+ | \\ | ||
+ | Now you can retest your connection from a web browser. | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | You should see an Apache test web page, this means your server is running and you can start to build and upload your test website. | ||
+ | \\ | ||
+ | \\ | ||
test.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1