目录
1、创建NFS挂载点 mkdir /opt/img 2.增加挂载点 vim /etc/exports /static 172.16.1.0/20(rw,sync,all_squash,anonuid=666,anongid=666) 3.启动nfs systemctl restart nfs-server 4.查看挂载点 showmount -e 5.授权 chown -R www.www /opt/img 二:lb负载均衡 1.创建挂载点 [root@lb01 ~]# mkdir /opt/img 2.挂载 mount -t nfs 172.16.1.31:/opt/img /opt/img 3.查看挂载点 df -h 4.网址配置文件 [root@lb01 /]# vim /etc/nginx/conf.d/game.conf location ~ \.(gif|png|jpg)$ { root /opt/img;
好文要顶