Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use linux's exportfs command to manage the file system shared by the NFS server

Shulou Source: shulou.com Published: 2022-06-02 15:24:18 09月22日 Update

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!

Tags: Directory file command system reference server service management content parameter security middle finger host value interest instance client client buddy partner Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MariaDB MySQL Linux Shulou Tech Info