首页 > 代码库 > centos下安装nodejs, log.io

centos下安装nodejs, log.io

centos6.4, 6.5自带的python版本可以安装相应的nodejs版本


wget http://nodejs.org/dist/v0.9.0/node-v0.9.0.tar.gz
tar zxvf node-v0.9.0.tar.gz
cd node-v0.9.0
./configure --prefix=/usr/local/node/0.9.0
make;make install

vi /etc/profile
#set for nodejs
export NODE_HOME=/usr/local/node/0.9.0
export PATH=$NODE_HOME/bin:$PATH

source /etc/profile

npm config set ca ""
npm install -g log.io --user "root"log.io-servervim ~/.log.io/harvester.conflog.io-harvester
访问server http://localhost:28778 搞定