安装 httpd
yum install httpd
启动
systemctl start httpd.service
打开防火墙端口:
firewall-cmd --permanent --add-port=80/tcp
firewall-cmd --reload
在服务器输入ip进行查看
http://xxx.xxx.xxx.xxx
systemctl start httpd.service 启动
systemctl stop httpd.service 停止
systemctl restart httpd.service 重启
systemctl enable httpd.service 设置apache开机启动