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-server
vim ~/.log.io/harvester.conf
log.io-harvester
访问server http://localhost:28778 搞定
centos下安装nodejs, log.io
时间: 2024-10-29 19:11:51