Skip to content

Instantly share code, notes, and snippets.

@wtsnz
Created June 5, 2013 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtsnz/5712546 to your computer and use it in GitHub Desktop.
Save wtsnz/5712546 to your computer and use it in GitHub Desktop.
Install Node.JS on Amazon Linux
# Update the system
sudo yum update
# Install gcc, make, openssl, git
sudo yum install gcc-c++ make
sudo yum install openssl-devel
sudo yum install git
# Clone the git repo and build
git clone git://github.com/joyent/node.git
cd node
./configure
make
sudo make install
# Now node is installed. We have to add it to the sudoers
sudo su
vi /etc/sudoers
# Find this line, we need to add ":/usr/local/bin" to it
# Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
# Press 'i'
# Type ':/usr/local/bin'
# Press 'ESC'
# Type 'wq!'
# Type 'exit'
# Install npm
git clone https://github.com/isaacs/npm.git
cd npm
sudo make install
# Install Express and Forever
sudo npm install express -g
sudo npm install forever -g
# Install nginx
yum install nginx
service nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment