让hexo在后台运行起来
1.用pm2管理进程让 hexo 博客在服务器后台跑起来
1 | npm install -g pm2 |
2.编写一个执行脚本 —— 在博客根目录下创建一个文件 run.js
1 | cd /usr/local/src/myblog |
3,使用pm2运行脚本 run.js
1 | cd /usr/local/src/myblog |
运行起来后可以使用pm2 show + 进程pid查看后台hexo进行
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 言己!