https://blog.csdn.net/weixin_34159110/article/details/91973870
(1)查看启动日志
journalctl -f或者 journalctl -xe
(2)设置开机自启动
systemctl enable nginx.service
(3)启动nginx服务
systemctl start nginx.service
(4)停止开机自启动
systemctl disable nginx.service
(5)查看服务当前状态
systemctl status nginx.service
(6)重新启动服务
systemctl restart nginx.service
(7)查看所有已启动的服务
systemctl list-units --type=service
转载于:https://my.oschina.net/thinkive/blog/1933416







网友评论