nfs入门

安装

服务端

1
2
3
4
5
6
7
8
9
sudo apt install  nfs-kernel-server
mkdir -p /www/nfs
vim /etc/exports
### 写入 ###
/www/nfs 10.0.0.0/8(rw,no_root_squash,no_subtree_check) 49.232.139.28/32(rw,no_root_squash,no_subtree_check)
### EOF ###
sudo service rpcbind restart
sudo service nfs-kernel-server restart
showmount -e

客户端

1
sudo apt install nfs-common