1. 安装EPEL资源库代码如下:(Install the EPEL repository code as follows.) # yum install epel-release
# yum install epel-release
2. 安装Node.js代码如下:(The code to install Node.js is as follows) # yum install nodejs
# yum install nodejs
3. 安装NPM代码如下: (Install the NPM code as follows) # yum install npm
# yum install npm
4. 仔细检查,确保一切正常代码如下: (Double-check to make sure everything is workingThe code is as follows) # node --version # npm --version
# node --version
# npm --version
1. 更新您的本地软件包索引: (Update your local package index:) $ sudo apt-get update
$ sudo apt-get update
2. 安装Node.js (Installing Node.js ) $ sudo apt-get install nodejs
$ sudo apt-get install nodejs
3. 安装NPM (Installing NPM) $ sudo apt-get install npm
$ sudo apt-get install npm
4. 仔细检查,确保一切正常(Double check to make sure everything is in order) $ node --version $ npm --version
$ node --version
$ npm --version
$ npm install forever -g
2. 仔细检查,确保一切正常 ( Double check to make sure everything is in order ) $ forever --version
$ forever --version
$ cd /www/wwwroot/xxxx/nodejs
$ npm install
forever start main.js
$ forever stopall
加载更多
你即将购买的物品,你想继续吗?