摘要: 原文链接: https://www.cnblogs.com/yalong/p/13936608.html 当服务运行到线上后,我们通常通过域名而不是 IP + 端口来访问,并且一台服务器上可能有多个 Node 服务在运行, 而且运行在不同的端口。如果它们都共用 80 端口显然是不行的,这时候就需要有 阅读全文
posted @ 2020-11-06 14:12 进军的蜗牛 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 原文地址: https://www.cnblogs.com/yalong/p/13931999.html 背景: 如果一个网站的服务,必须通过命令行 node server.js 来启动,启动后,退出命令行服务就终止,这显然不符合我们的预期。而即便是服务能持续运行,一旦遇到异常情况服务即终止,也是不 阅读全文
posted @ 2020-11-06 10:47 进军的蜗牛 阅读(11017) 评论(0) 推荐(1) 编辑
摘要: 原文地址:https://www.cnblogs.com/yalong/p/13932980.html 第一步 先实现 ssh的免密登录远程服务器: mac上配置 ssh 免密登录远程服务器教程看这里 https://www.cnblogs.com/yalong/p/13897370.html 第二 阅读全文
posted @ 2020-11-06 10:45 进军的蜗牛 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 原文链接 https://www.cnblogs.com/yalong/p/13935503.html 这个提示是找不到npm 跟pm2 命令, 但是我们在服务器上使用 npm -v pm2 -v 是可以查看到版本好的, 也就是安装好的 这个时候提示 command not found 是因为在自动 阅读全文
posted @ 2020-11-06 10:27 进军的蜗牛 阅读(2164) 评论(0) 推荐(0) 编辑
摘要: 1.安装node 先安装,nvm,即是Node Version Manager(Node版本管理器) curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash 之后需要激活nvm sourc 阅读全文
posted @ 2020-11-06 10:02 进军的蜗牛 阅读(325) 评论(0) 推荐(0) 编辑