centos7 永久修改主机名:
hostnamectl set-hostname yourhostname
记得重启生效:reboot 或者shutdown -r now
centos7 关于防火墙:
systemctl status firewalld.service #查看firewall
关闭防火墙:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动