# 1、更新源
# sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
# 2、安装
# sudo yum install -y nginx
# 3、对外配置文件位置暴露
# location /report/nfs/ {
# autoindex on;
# root /data1/report/nfs/;
# }
# 4、重启
# systemctl restart nginx.service
网友评论