技术改变生活

博客园 首页 新随笔 联系 订阅 管理

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

posted on 2020-08-22 14:39  小阿峰  阅读(503)  评论(0编辑  收藏  举报