安装组件

# 服务器
sudo apt-get install nfs-common portmap nfs-kernel-server
# 客户端
sudo apt-get install nfs-common portmap

配置导出

$sudo vim /etc/exports
/srv/cpmlmp/log home.lyl.hk(ro)

重启服务

sudo /etc/init.d/nfs-kernel-server restart

客户端挂载

# 查看服务器导出
showmount -e 52.52.85.240
showmount -e 52.52.194.206
showmount -e 52.52.181.110

# mount挂载
sudo mkdir -p /Volumes/aws/240; sudo mount -o resvport 52.52.85.240:/srv/cpmlmp/log /Volumes/aws/240
sudo mkdir -p /Volumes/aws/206; sudo mount -o resvport 52.52.194.206:/srv/cpmlmp/log /Volumes/aws/206
sudo mkdir -p /Volumes/aws/110; sudo mount -o resvport 52.52.181.110:/srv/cpmlmp/log /Volumes/aws/110