设置为开机自启:systemctl enable httpd 配置防火墙:firewall-cmd —permanent —add-port=80/tcp //必须添加,不然被防火墙阻挡了 :firewall-cmd —reload