Skip to content

Commit

Permalink
Update 4.15 部署
Browse files Browse the repository at this point in the history
  • Loading branch information
nswbmw committed Nov 20, 2017
1 parent 2d5182d commit 52ea0fb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions book/4.15 部署.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ yum install npm #安装 npm
npm i npm -g #升级 npm
npm i pm2 -g #安装 pm2
npm i n -g #安装 n
n v6.9.1 #安装 v6.9.1 版本的 Node.js
n use 6.9.1 #使用 v6.9.1 版本的 Node.js
n v8.9.1 #安装 v8.9.1 版本的 Node.js
n use 8.9.1 #使用 v8.9.1 版本的 Node.js
node -v
```
> 注意:如果 `node -v` 显示的不是 6.9.1,则断开 ssh,重新登录主机再试试。
> 注意:如果 `node -v` 显示的不是 8.9.1,则断开 ssh,重新登录主机再试试。
此时应该在 `/root` 目录下,运行以下命令:
```sh
Expand All @@ -201,8 +201,6 @@ pm2 logs

![](./img/4.15.3.png)

> 小提示:绑定域名不在本节讲解范围,读者可自行尝试。
> 小提示:因为我们选择的按时付费套餐,测试完成后,可在主机管理页面选择关闭主机,节约费用。
上一节:[4.14 测试](https://github.com/nswbmw/N-blog/blob/master/book/4.14%20%E6%B5%8B%E8%AF%95.md)

0 comments on commit 52ea0fb

Please sign in to comment.