首页 > 其他 > 详细

rhel 6与7开机自启服务区别对比

时间:2020-08-22 18:18:22      阅读:91      评论:0      收藏:0      [点我收藏+]

rhel6 查看开机自启动

chkconfig --list

启动、关闭,设置开启自启动

service iptables start

service  iptables  stop

chkconfig --level 2345  iptables  on

 

[root@x112 mysql]# chkconfig --level 3,4,5 mysqld on

chkconfig version 1.7.4 - Copyright (C) 1997-2000 Red Hat, Inc.

This may be freely redistributed under the terms of the GNU Public License.

 

usage:   chkconfig [--list] [--type <type>] [name]

         chkconfig --add <name>

         chkconfig --del <name>

         chkconfig --override <name>

         chkconfig [--level <levels>] [--type <type>] <name> <on|off|reset|resetpriorities>

[root@x112 mysql]# chkconfig --add mysqld on

[root@x112 mysql]# chkconfig --level 345 mysqld on

  

rhel7防火墙查看开机自启动

systemctl   list-unit-files | grep  iptables

启动、关闭,设置开启自启动

systemctl start iptables

systemctl stop iptables

systemctl enable  iptables

rhel 6与7开机自启服务区别对比

原文:https://www.cnblogs.com/xiaofeng666/p/13545574.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!