【发布时间】:2011-06-22 00:01:10
【问题描述】:
我想知道应该通过执行 Wiki 中提到的以下命令,在 CentOS 5/cPanel 服务器上的哪个目录中安装 node.js:
git clone --depth 1 https://github.com/joyent/node.git
cd node
git checkout origin/v0.4 # optional. Note that master is unstable.
export JOBS=2 # optional, sets number of parallel commands.
mkdir ~/local
./configure --prefix=$HOME/local/node
make
make install
echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile
source ~/.profile
请指教。
【问题讨论】:
-
在任何你想要的地方安装 node.js。它应该很好地将自己添加到路径中。只需获取源代码,配置,制作,制作安装。顺便说一句,我推荐 0.4.8