-
设置主机名
hostnamectl set-hostname <host-name> -
重启网络服务
systemctl restart network -
登出
logout -
查看网卡
ip a -
防火墙添加规则
firewall-cmd --zone=public --add-port=<port>/tcp --permanent
firewall-cmd --reload -
关闭防火墙
systemctl stop firewalld
设置主机名
hostnamectl set-hostname <host-name>
重启网络服务
systemctl restart network
登出
logout
查看网卡
ip a
防火墙添加规则
firewall-cmd --zone=public --add-port=<port>/tcp --permanent
firewall-cmd --reload
关闭防火墙
systemctl stop firewalld
本文标题:[Linux-CMD]CentOS7
本文链接:https://www.haomeiwen.com/subject/jcpepktx.html
网友评论