Skip to content

Instantly share code, notes, and snippets.

@Jxck
Created September 9, 2011 07:29
Show Gist options
  • Save Jxck/1205672 to your computer and use it in GitHub Desktop.
Save Jxck/1205672 to your computer and use it in GitHub Desktop.
install node.js in ec2 micro instance
# 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
# 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
@Jxck
Copy link
Author

Jxck commented Sep 9, 2011

use case

Amazon Linux AMI

wget https://raw.github.com/gist/1205672/a73046e90dc1734bc2630498e8dacc03bd93b214/nodeinstall.sh
chmod +x ./nodeinstall.sh
./nodeinstall.sh

@Jxck
Copy link
Author

Jxck commented Sep 9, 2011

I refer to this post http://d.hatena.ne.jp/t_43z/20110304/1299222231
thanks to @meso :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment