Created
September 9, 2011 07:29
-
-
Save Jxck/1205672 to your computer and use it in GitHub Desktop.
install node.js in ec2 micro instance
This file contains 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
# alias | |
alias ls='ls -la --col' | |
# JST time | |
sudo cp /usr/share/zoneinfo/Japan /etc/localtime | |
# package for build | |
sudo yum install -y git gcc-c++ openssl-devel make | |
# install nodebrew | |
wget https://raw.github.com/hokaccha/nodebrew/master/nodebrew | |
perl nodebrew setup | |
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> .bashrc | |
source .bashrc | |
# install node | |
nodebrew install v0.6.11 | |
nodebrew use v0.6.11 |
This file contains 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
# package for build | |
sudo apt-get install build-essential libssl-dev | |
# install nodebrew | |
wget https://raw.github.com/hokaccha/nodebrew/master/nodebrew | |
perl nodebrew setup | |
export PATH=$HOME/.nodebrew/current/bin:$PATH | |
# install node | |
nodebrew install v0.6.11 | |
nodebrew use v0.6.11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I refer to this post http://d.hatena.ne.jp/t_43z/20110304/1299222231
thanks to @meso :)