zoukankan      html  css  js  c++  java
  • rhel 6与7开机自启服务区别对比

    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

  • 相关阅读:
    leetcode1161
    leetcode1160
    校招真题练习034 倒水(贝壳)
    校招真题练习033 音乐列表(贝壳)
    校招真题练习032 连续相同字符串(头条)
    校招真题练习031 三支球队比分(头条)
    leetcode1144
    ArrayQueue(队列)
    LinkQueue(链队)
    快速幂
  • 原文地址:https://www.cnblogs.com/xiaofeng666/p/13545574.html
Copyright © 2011-2022 走看看