系统时间同步 #设置时区为上海 timedatectl set-timezone Asia/Shanghai yum install ntp -y #网络同步时间 ntpdate pool.ntp.org 防火墙开启/关闭 systemctl start firewalld # 启动防火墙 systemctl stop firewalld # 停止防火墙 systemctl restart firewalld # 重启防火墙 systemctl enable firewalld # 开机自启动防火墙 systemctl disable firewalld # 禁止开机自启动防火墙