centos 7 开启 httpd 服务和 80 端口
centos 7 开启 httpd 服务和 80 端口
yum install -y httpd
systemctl start httpd
firewall-cmd --add-service=http --permanent
firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --list-all
yum install -y httpd
systemctl start httpd
firewall-cmd --add-service=http --permanent
firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --list-all