たぶん10分くらいで可能。
yum install openssl-devel wget http://nodejs.org/dist/node-v0.4.3.tar.gz tar xvzf node-v0.4.3.tar.gz cd node-v0.4.3 ./configure make make install curl http://npmjs.org/install.sh | sh npm install websocket-server npm install base64
make中は一休みできる(●´ω`●)
最新版
websocket-serverは新しいWebSocketの仕様に対応してないのでwebsocketを使用する。
yum install openssl-devel gcc-c++ make wget http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz tar xvzf node-v0.6.8.tar.gz cd node-v0.6.8 ./configure make make install curl http://npmjs.org/install.sh | sh npm install websocket
■CentOS6.2
以下のコマンドで軽く設定してiptablesの設定ファイルを生成しておく。
system-config-firewall-tui
実際の設定は以下のコマンドを実行して行う。
vim /etc/sysconfig/iptables /etc/init.d/iptables restart vim /etc/sysconfig/ip6tables /etc/init.d/ip6tables restart
naveを使ってnodeをインストールする。
sudo yum -y install openssl-devel gcc-c++ git make git clone https://github.com/isaacs/nave.git ~/.nave ~/.nave/nave.sh install stable ~/.nave/nave.sh use stable echo "~/.nave/nave.sh use stable" >> ~/.bash_profile sudo curl https://npmjs.org/install.sh --insecure | sh npm -g install forever