linux service文件创建
service 模板
1 | wget https://dl.halo.run/config/halo.service -O /etc/systemd/system/halo.service |
重新加载 systemd
1 | systemctl daemon-reload |
运行服务
1 | systemctl start halo |
在系统启动时启动服务
1 | systemctl enable halo |
您可以查看服务日志检查启动状态
1 | 启动服务:systemctl start vsftpd.service |