nodejs技巧收集

nodejs版本v0.6.19

1,ubuntu下安装最新稳定版本nodejs

sudo apt-get install python-software-properties  
sudo add-apt-repository ppa:chris-lea/node.js  
sudo apt-get update  
sudo apt-get install nodejs
sudo apt-get install npm

2,自重重新加载修改过的模块

使用supervisor,安装命令

npm install supervisor -g 

如使用代理服务器,则设置环境变量

http_proxy=http://192.168.1.1:8080

安装好后使用如下命令运行

Examples:
  supervisor myapp.js




你可能感兴趣的:(服务器)