1.安装EPEL镜像仓库
sudo yum install epel-release
2.安装nginx
sudo yum install nginx
3.启动nginx并配置开机启动
sudo systemctl start nginx
sudo systemctl enable nginx
4.检测nginx状态
sudo systemctl status nginx
5.关闭防火墙的80,443端口
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
6.网页验证
输入目标机ip(不知道为啥是welcome centos,按理来说是nginx)