需要 通过 yum install httpd -y安装好http服务
然后再通过 systemctl start httpd 开始http服务
当然也可以通过systemctl enable httpd 设置为开机自动启动httpd服务
http服务开启之后,如果配置过防火墙的规则的,就需要设置防火墙允许80端口
firewall-cmd --zone=public --add-port=80/tcp
需要 通过 yum install httpd -y安装好http服务
然后再通过 systemctl start httpd 开始http服务
当然也可以通过systemctl enable httpd 设置为开机自动启动httpd服务
http服务开启之后,如果配置过防火墙的规则的,就需要设置防火墙允许80端口
firewall-cmd --zone=public --add-port=80/tcp