HostHatch 内网挂载简单配置

服务端IP为A.B.C.D 客户端IP为a.b.c.d

服务端:

sudo apt install nfs-kernel-server

sudo echo “/home a.b.c.d(rw,no_root_squash,no_subtree_check,sync)” >> /etc/exports

sudo service nfs-kernel-server restart

客户端:

sudo apt-get install nfs-common

sudo mount -t nfs4 -o proto=tcp,port=2049 A.B.C.D:/home /www/wwwroot

sudo echo “A.B.C.D:/home /www/wwwroot nfs4 _netdev,auto 0 0” >> /etc/fstab

© 版权声明
THE END
点赞0