1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > CentOS 启用或禁用服务自动启动 (Enable or Disable Service Autostart in CentOS)

CentOS 启用或禁用服务自动启动 (Enable or Disable Service Autostart in CentOS)

时间:2022-03-22 18:28:17

相关推荐

CentOS 启用或禁用服务自动启动 (Enable or Disable Service Autostart in CentOS)

在 CentOS 7 中检查服务自动启动是启用或禁用状态

[root@jasonsong ~]# systemctl is-enabled nginx

在 CentOS 7 中禁用服务自动启动

[root@jasonsong ~]# systemctl disable nginx

在 CentOS 7 中启用服务自动启动

[root@jasonsong ~]# systemctl enable nginx

在 CentOS 6 中检查服务自动启动是启用或禁用状态(没有添加显示为空)

[root@jasonsong ~]# chkconfig --list | grep nginx

在 CentOS 6 中添加服务

[root@jasonsong ~]# chkconfig --add nginx

在 CentOS 6 中禁用服务自动启动

[root@jasonsong ~]# chkconfig nginx off

在 CentOS 6 中启用服务自动启动

[root@jasonsong ~]# chkconfig nginx on

查看我本人更多原创文章,请点击这里。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。