1)#yum clean allhtml
2)#yum install epel-release -ynginx
3)#yum install nginx -yweb
1)shell
2)vim
2)測試
2)網站
3)3d
3)代理
3)server
3)
3)
#vim /usr/local/nginx/conf/nginx.conf ---->:wq
#systemctl reload nginx
#yum clean all
#yum install rpcbind nfs-utils -y
環境介紹:nfs服務端:192.168.145.130
web1:192.168.145.131
web2:192.168.145.132
web3:192.168.145.133
nfs服務端下操做:
#mkdir /share
#touch /share/share.txt
#echo share666 > /share/share.txt
#vim /etc/exports
#systemctl enable nfs-server.service
#systemctl enable rpcbind.service
#systemctl start rpcbind.service
#systemctl start nfs-server.service
#yum clean all
#yum install rpcbind nfs-utils -y
# mount -t nfs 192.168.145.130:/share /usr/share/nginx/html
#df
nfs服務端:#chmod -R o+w /share/
web1:#touch /share/share1.txt
web2:#ls /share/
#touch /usr/share/nginx/html/share2.txt
web3:#ls /usr/share/nginx/html/
#vim /etc/nginx/nginx.conf
#vim /etc/nginx/nginx.conf
#vim /etc/nginx/nginx.conf
#tar xvf nginx-1.10.3.tar.gz
#./configure --prefix=/usr/local/nginx
#make && make install