使用nginx搭建nfs服务
2020-03-02 本文已影响0人
张音乐
# 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