Created
June 5, 2013 08:46
-
-
Save wtsnz/5712546 to your computer and use it in GitHub Desktop.
Install Node.JS on Amazon Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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