安装screen

1
yum install screen -y

运行

1
2
3
4
#新建一个名为hexo的session,并且自动进入
screen -S hexo
#运行hexo到4000端口,这里你可以设置为80端口
hexo s -p 4000

参考

https://yremp.live/linux-run-hexo/