You're viewing old version number 6. - Current version
Using Amazon Web Services
Logged into aws.amazon.com with my Amazon account, which I then used to create an AWS account.
Created an EC2 instance. I choose Ubuntu 14.04.
During the process, I had to create a key pair name. AWS created a private key, which I downloaded. It was a .pem file.
I moved the .pem file to another directory on my local Linux machine at home. From within this directory, I used ssh to connect to my EC2 account, using the command line instructions provided by AWS's web interface.
It's a fairly clean or empty Linux machine, as with my Digital Ocean Droplet account.
I chose to install Nginx first.
http://voidcanvas.com/setup-and-configure-nginx-in-aws-ec2-linuxubuntu-instance/
this starts in the home directory, which is /home/ubuntu
- sudo apt-get update
- sudo apt-get install nginx
- sudo service nginx start
- sudo mkdir www
- cd www
- sudo mkdir mysite
- cd mysite
- sudo vim index.html
- added test content to index.html
- cd
- sudo chmod -R 755 www
- cd /etc/nginx/sites-available
- ls
- sudo cp default mysite
- cd ..
- cd sites-enabled
- sudo ln -s /etc/nginx/sites-available/mysite mysite
- sudo service nginx restart
ec2-54-211-235-101.compute-1.amazonaws.com
From JR's : articles
175 words - 1413 chars
created on
updated on
- #
source
- versions