linux-系统服务

chkconfig

chkconfig --list 查看所有的系统服务

chkconfig 服务名 off   开机系统不启动服务

chkconfig iptables off

chkconfig 服务名 on 开机启动系统服务

常见的系统服务:只要是yum安装的服务就可以使用chkconfig

• iptbles #防火墙
• network #网络
• httpd #Apache
• nginx #nginx

service 服务名 start/stop/restart  启动停止重启服务

service httpd stop #停止该系统服务
 service iptables start #启动该服务
 service iptables restart #重启启该服
原文地址:https://www.cnblogs.com/lingxia/p/5885047.html