Centos查看开机服务、开机启动服务、开机禁用服务。

查看开机服务:systemctl list-unit-files

查看服务状态:systemctl status “服务名称”  如:systemctl status nginx

禁用开机服务:systemctl disable “服务名称” 如:systemctl disable nginx

添加开机服务:systemctl enable  “服务名称” 如:systemctl enable nginx 

 

 


评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注