美文网首页
[Linux-CMD]CentOS7

[Linux-CMD]CentOS7

作者: 帅可儿妞 | 来源:发表于2020-11-18 13:43 被阅读0次
    1. 设置主机名
      hostnamectl set-hostname <host-name>

    2. 重启网络服务
      systemctl restart network

    3. 登出
      logout

    4. 查看网卡
      ip a

    5. 防火墙添加规则
      firewall-cmd --zone=public --add-port=<port>/tcp --permanent
      firewall-cmd --reload

    6. 关闭防火墙
      systemctl stop firewalld

    相关文章

      网友评论

          本文标题:[Linux-CMD]CentOS7

          本文链接:https://www.haomeiwen.com/subject/jcpepktx.html