Ubuntu安装NFS服务端

2022-01-25 19:13:43

APT 安装:

$ sudo apt-get install -y nfs-kernel-server

配置暴露的目录:

$ vim /etc/exports
/data/pv *(rw,sync,no_root_squash)

重启服务:

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