1.安装httpd服务
yum install httpd -y
2. 关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld
3. 关闭SELINUX
vim /etc/selinux/config
4.下载源码
浏览器搜索 源码之家,在里面随便下载一个源码
我下载的是热气球
5. 源码处理
下载的源码压缩格式为.zip 处理为.tar格式
将下载的源码上传到虚拟机然后解
tar -xvf reqiqiufeixing.zip.tar
将文件里内容全部移动到/var/www/html下
mv /root/ reqiqiufeixing/ /var/www/html
6. 重启服务
systemctl restart httpd
7. 网页查看
查看自己ip
ip a