hexo博客开机自启动

vps机器重启后, hexo博客502了, 发现没有做开机自启动. npm用pm2做托管: 创建hexo-backrun.js:

创建pm2-config.json:

创建hexo.service:

systemctl deamon-reload && systemctl start hexo && systemctl enable hexo