ubuntu systemctl管理

启动服务状态

systemctl start nginx.service

查询服务状态

systemctl status nginx.service

开机启动

systemctl enable nginx.service

取消开机启动

systemctl disable nginx.service

验证是否开机启动

systemctl is-enabled nginx

参考

https://www.cnblogs.com/Areas/p/13439000.html

猜你喜欢

转载自blog.csdn.net/lxyoucan/article/details/127249032
今日推荐