Linux basic commands --- exportfs management nfs mounted file system

exportfs

exportfs primarily used to manage the current file system NFS server.

Scope of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora.

 

1 , grammar

/usr/sbin/exportfs [-avi]  [-o options,..]  [client:/path ..]

/usr/sbin/exportfs -r  [-v]

/usr/sbin/exportfs [-av]  -u  [client:/path ..]

/usr/sbin/exportfs [-v]

/usr/sbin/exportfs –f

 

2 , the parameter list

Options

Explanation

-a 

Nfs shared configuration file for all of the shared directory

-i

Ignore / etc / exports configuration file, just use the default value exportfs command and command-line parameters specified

-r

Reshare all nfs file system

-u

Cancel share one or more NFS shared file systems

-v

Show execution information

 

3 , examples

[root@localhost ~]# exportfs -u 192.168.1.7:/media/test


      Made a study of the Linux platform, now came up with a prototype, you can use and reference

      Link: https: //pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ Password: n7bk 

081634m8n8t2tmz2te95w5.gif


Guess you like

Origin blog.51cto.com/9888479/2405367