About me
Recurse Center alumnus.
EC2 Linux AMI and Node
Each time I spin up a brand-new EC2 instance and install Node, I ended up with a trillion open tabs looking up obscure details to get through the installation.
If nothing else, the below will be helpful for the next time:
- Spin up a brand new EC2
- Select “Security Groups” in the EC2 console and ensure that Inbound > HTTP (Port 80) on Source: 0.0.0.0/0 will open up the instance for HTTP requests
- Set up the SSH keys with the .pem file
ssh -i /path/to/file.pem ec2-user@ec2-xxx-xx-xx-xx.compute-1.amazonaws.com/
- SSH into the server and install some things:
yum install gcc-c++
yum install git
yum install nginx _# if you want nginx_
- Install Node
git clone git://github.com/joyent/node.git
cd node/
git branch -al # find latest release branch
git checkout
./configure
make
This will take 15 to 30 minutes.
sudo make install
Create an image of your instance — compiling Node will take while. Visit the EC2 console, select the instance and follow the steps from Actions > Create Image
Have fun!
2 years ago
Comments
Share
Short URL
tmblr.co/Z4dFCygU287b
Tweet
Disqus