實驗環境
192.168.68.134 wordpress站點 nfs-server
192.168.68.144 nfs-client
實驗要求
nfs server共享/var/www/html目錄
nfs clinet掛載nfs-server共享的目錄,部署wordpress
nfs server端
先部署wordpress document root 在 /var/ww/html下
vim /etc/exports :/var/www/html/ 192.168.0.0/16(rw)
exportfs -r
systemctl start nfs
nfs client端
[root@centos ~]# showmount -e 192.168.68.134
[root@centos ~]# mount -t nfs 192.168.68.134:/var/www/html /var/www/html
[root@centos ~]# systemctl restart httpd
本文來自投稿,不代表Linux運維部落立場,如若轉載,請注明出處:http://www.www58058.com/87986