글 수 369
Ubuntu
#
# Update Ubuntu and Install Git, OpenSSL, and pkgconfig
#
apt-get -y update
apt-get -y install git-core build-essential libssl-dev pkg-config
#
# Install node
#
git clone http://github.com/joyent/node.git
cd node
git checkout v0.6.7
./configure
make
make install
#
# Install forever
#
cd ../
npm install forever -g
CentOS
#
# Update CentOS
#
yum update
rpm -ivh http://repo.webtatic.com/yum/centos/5/`uname -i`/webtatic-release-5-1.noarch.rpm
yum install openssl-devel pkgconfig gcc gcc-c++ kernel-devel make git
#
# Install Node and Forever
#
cd /usr/src
git clone http://github.com/joyent/node.git
cd node
git checkout v0.6.7
./configure
make && make install
cd /root
npm install forever -g
Gentoo
#
# Update system
#
emerge --sync
emerge portage
#
# Install git, and other dependencies
#
emerge --verbose dev-vcs/git dev-util/pkgconfig
#
# Install python 2.7
#
wget curl http://python.org/ftp/python/2.7/Python-2.7.tgz -o Python2.7.tgz
tar -zxvf Python2.7.tgz
cd Python-2.7
./configure
make && make install
mv /usr/local/bin/python /usr/local/bin/python2.6.2
mv /usr/local/bin/python2.7 /usr/local/bin/python
cp -f /usr/local/bin/python /usr/bin/python
#
# Install node, npm, and forever
#
git clone git://github.com/joyent/node.git
cd node
git checkout v0.6.7
./configure
make && make install
cd ../
npm install forever -g