ubuntu 安装nfs 服务
1. 安装nfs服务软件 (1)服务器端 $sudo apt-get install nfs-kernel-server rpcbind (2)客户端 (可以省略) $sudo apt-get install nfs-common 2. 服务器端配置 创建共享目录, mkdir -p /home/jason/nfs_dir 修改共享目录权限, chmod 777 /home/jason/nfs_dir 修改配置文件, $sudo vim /etc/exports ###########添加服务器端共享目录,例如: /home/jason/nfs_dir 192.168.1.*(rw,sync,no_root_squash,no_subtree_check) $sudo exportfs -ra #更新exports配置 3. 服务器端启动服务 $sudo rpcbind $service nfs-kernel-server restart 4. 客户端挂载nfs # mount -t nfs 192.168.1.100:/home/jason/nfs_dir /mnt 来源: https://www.cnblogs.com/gtarcoder/p/4590877.html