源码安装node.js

源码安装node.js

官方网站:
https://nodejs.org
http://nodeschool.io
https://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz

实测系统:Ubuntu14.04/CentOS7

安装:
root@localhost:~# gunzip node-v0.12.7.tar.gz
root@localhost:~# tar -xvf node-v0.12.7.tar -C /usr/local/src/
root@localhost:~# cd /usr/local/src/node-v0.12.7/
root@localhost:/usr/local/src/node-v0.12.7# ./configure && make -j4 && make install
说明:如果不通过--prefix指定安装目录,默认安装在/usr/local/{etc,bin,man,lib,share}下面

安装完成后,会多出几个命令
node #主程序
npm #node包管理器
posted @ 2015-08-09 19:18  李庆喜  阅读(217)  评论(0编辑  收藏  举报