Use linux's exportfs command to manage the file system shared by the NFS server
This article mainly introduces the use of linux exportfs command to manage the file system shared by the NFS server, the article is very detailed, has a certain reference value, interested friends must read it!
The exportfs command needs to refer to the configuration file "/ etc/exportfs". You can also specify the NFS file system to be shared directly on the command line.
Syntax format: export [parameters] [directory]
Commonly used parameters: coach
-a mount all or unmount all-r remount-u unmount a directory-v display shared directory
Reference example
Output the NFS shared directory:
[root@linuxcool] # exportfs-a
Export the directory / usr/tmp to the django host and allow the client to send unsafe file lock requests:
[root@linuxcool] # exportfs-o insecure_locks django:/usr/tmp
Uninstall to the / usr/linuxprobe directory:
[root@linuxcool] # exportfs-u / usr/linuxcool
Uninstall all export lists:
[root@linuxcool ~] # exportfs-au
Display the shared directory:
[root@linuxcool] # exportfs-v above are all the contents of managing the file system shared by the NFS server using the exportfs command of linux. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!