1.添加Nginx存储库
yum install epel-release
2.安装
yum install nginx
3.启动
systemctl start nginx
4.设置开机启动
systemctl enable nginx
说明:
配置文件:/etc/nginx
日志文件:/var/log/nginx
参考文章:如何在CentOS 7上安装Nginx
原文:https://www.cnblogs.com/lurenjia1994/p/9484456.html