从 LPI/LPIC 201 问题学习Linux(7)

Which of the following configuration lines will export /usr/local/share/ to nfsclient with read-write access, ensuring that all changes are written straight to the disk?

A. /usr/local/share nfsclient(rw)
B. nfsclient:/usr/local/share/:rw,sync
C. /usr/local/share nfsclient:rw:sync
D. /usr/local/share nfsclient(rw,sync)
E. nfsclient(rw,sync) /usr/local/share

看一个nfs 配置文件的例子。
#cat /etc/exports
/usr/local 192.168.0.0/255.255.255.0(ro)
/home      192.168.0.0/255.255.255.0(rw,no_root_squash)

共享目录    客户机名或IP(参数,参数,....)
EXAMPLE
       # sample /etc/exports file
       /               master(rw) trusty(rw,no_root_squash)
       /projects       proj*.local.domain(rw)
       /usr            *.local.domain(ro) @trusted(rw)
       /home/joe       pc001(rw,all_squash,anonuid=150,anongid=100)
       /pub            (ro,insecure,all_squash)

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/27764.html