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

相关文章:

  • 2022-12-23
  • 2021-12-02
  • 2021-11-19
  • 2021-12-26
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2022-01-15
  • 2021-05-24
  • 2021-07-12
相关资源
相似解决方案