美文网首页性能测试
查看使用systemctl启动日志

查看使用systemctl启动日志

作者: 杰罗米诺大背头 | 来源:发表于2020-03-16 18:57 被阅读0次

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

相关文章

网友评论

    本文标题:查看使用systemctl启动日志

    本文链接:https://www.haomeiwen.com/subject/ttrxyhtx.html