{"id":3280,"date":"2019-06-24T09:45:22","date_gmt":"2019-06-24T01:45:22","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3280"},"modified":"2019-06-25T19:35:54","modified_gmt":"2019-06-25T11:35:54","slug":"exportfs","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/exportfs","title":{"rendered":"exportfs\u547d\u4ee4 – \u7ba1\u7406NFS\u670d\u52a1\u5668\u5171\u4eab\u7684\u6587\u4ef6\u7cfb\u7edf"},"content":{"rendered":"\n

exportfs\u547d\u4ee4\u9700\u8981\u53c2\u8003\u914d\u7f6e\u6587\u4ef6\u201c\/etc\/exportfs\u201d\u3002\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u4e2d\u6307\u5b9a\u8981\u5171\u4eab\u7684NFS\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f: <\/strong> export [\u53c2\u6570] [\u76ee\u5f55] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a\ufeff<\/strong><\/p>\n\n\n\n
-a<\/td>\u5168\u90e8\u6302\u8f7d\u6216\u8005\u5168\u90e8\u5378\u8f7d<\/td><\/tr>
-r<\/td>\u91cd\u65b0\u6302\u8f7d<\/td><\/tr>
-u<\/td>\u5378\u8f7d\u67d0\u4e00\u4e2a\u76ee\u5f55<\/td><\/tr>
-v<\/td>\u663e\u793a\u5171\u4eab\u76ee\u5f55<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u8f93\u51faNFS\u5171\u4eab\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# exportfs -a<\/pre>\n\n\n\n

\u5bfc\u51fa\u76ee\u5f55\/usr\/tmp\u7ed9django\u4e3b\u673a\uff0c\u4e14\u5141\u8bb8\u5ba2\u6237\u7aef\u53d1\u9001\u4e0d\u5b89\u5168\u7684\u6587\u4ef6\u9501\u8bf7\u6c42 \uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# exportfs -o insecure_locks django:\/usr\/tmp <\/pre>\n\n\n\n

\u5378\u8f7d\u5230\/usr\/linuxprobe\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# exportfs -u \/usr\/linuxcool<\/pre>\n\n\n\n

\n\n\u5378\u8f7d\u6240\u6709\u5bfc\u51fa\u5217\u8868\uff1a\n\n<\/p>\n\n\n\n

[root@linuxcool ~]# exportfs -au <\/pre>\n\n\n\n

\u663e\u793a\u5171\u4eab\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# exportfs -v<\/pre>\n","protected":false},"excerpt":{"rendered":"

exportfs\u547d\u4ee4\u9700\u8981\u53c2\u8003\u914d\u7f6e\u6587\u4ef6\u201c\/etc\/exportfs\u201d\u3002\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u4e2d\u6307\u5b9a\u8981\u5171\u4eab\u7684NFS\u6587\u4ef6 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3280"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3280"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3280\/revisions"}],"predecessor-version":[{"id":3558,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3280\/revisions\/3558"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}