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
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭