centos 7 服务开机启动、关闭设置的方法
centos 7 :使用systemctl中的enable、disable 即可。
示例:
systemctl enable apache.service 开机自启apache服务
systemctl disable apache.service 关闭开机自启
systemctl list-unit-files|grep iptables 查看iptables是否开机启动的状态
【勤则百弊皆除】
centos 7 :使用systemctl中的enable、disable 即可。
示例: