CentOS 7基本命令

前端之家收集整理的这篇文章主要介绍了CentOS 7基本命令前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

防火墙

  • 启动firewall
  • @H_502_5@
    systemctl start firewalld.service
    • 停止firewall
    • @H_502_5@
      systemctl stop firewalld.service
      • 禁止firewall开机启动
      • @H_502_5@
        systemctl disable firewalld.service

        修改主机名

        • 临时修改
        • @H_502_5@
          hostname <主机名>
          • 永久修改
          • @H_502_5@
            hostnamectl set-hostname <主机名>

猜你在找的CentOS相关文章