实验环境:准备四台centos七的虚拟机 一台haproxy的两台nginx的一台nfs的主机ip部署服务器192.168.203.166haproxycentos7192.168.203.171nginxcentos7192.168.203.175nginxcentos7192.168.203.176nfscentos7关闭主机防火墙和修改selinux1.systemctlstopfirewalld.service2.setenforce0nginx部署1依赖包安装1.systemctlstopfirewalld.service下载nginx1.d/usr/local/src/