ubuntu1604 configuration nfs

1. Download nfs: apt install nfs-kernel-server

2 / shared configuration file: gedit / etc / exports 

3. / nfs share full access to all users: / nfs * (rw, sync, no_root_squash)

4. Restart the nfs service: /etc/init.d/nfs-kernel-server restart

5. restart the service: /etc/init.d/rpcbind restart

6. The machine checks whether the configuration is successful: showmount -e

root@ubuntu:/nfs# showmount -e
Export list for ubuntu:
/nfs *
root@ubuntu:/nfs#

Configuration is successful

 

Client connection mount: mount -t nfs -o nolock 192.168.112.225:/nfs / tmp / nfs

 

Verify: touch a file in / nfs directory virtual machine / tmp / nfs file folder on the board to see whether there are new files on a virtual machine

 

Guess you like

Origin www.cnblogs.com/pingxidubing/p/10954361.html