Memento:
Server
1 sudo apt-get install nfs-kernel-server
2 sudo vim /etc/exports
/opt/nfsroot *(rw,sync,no_root_squash,no_subtree_check)
3 sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-kernel-server restart
Client
1 Linux: mount -t nfs 192.168.0.1:/opt/nfsroot /mnt/nfs
时间: 2024-10-13 15:22:32