{"id":90,"date":"2023-08-13T01:50:16","date_gmt":"2023-04-17T21:54:32","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/index.php\/2023\/11\/30\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/"},"modified":"2025-07-31T22:43:29","modified_gmt":"2025-07-31T14:43:29","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/","title":{"rendered":"Rocky Linux 9 NFS\u6302\u8f7d\u914d\u7f6e\u6559\u7a0b\uff1a\u8f7b\u677e\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab"},"content":{"rendered":"<h3>NFS\u7b80\u4ecb<\/h3>\n<p>NFS\uff08\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff09\u662f\u4e00\u79cd\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u534f\u8bae\uff0c\u5141\u8bb8\u5c06\u8fdc\u7a0b\u76ee\u5f55\u6302\u8f7d\u5230\u670d\u52a1\u5668\u4e0a\u3002\u8fd9\u4f7f\u5f97\u60a8\u80fd\u591f\u5728\u4e0d\u540c\u4f4d\u7f6e\u7ba1\u7406\u5b58\u50a8\u7a7a\u95f4\uff0c\u5e76\u5141\u8bb8\u591a\u4e2a\u5ba2\u6237\u7aef\u5411\u8be5\u7a7a\u95f4\u5199\u5165\u6570\u636e\u3002NFS\u63d0\u4f9b\u4e86\u4e00\u79cd\u76f8\u5bf9\u6807\u51c6\u4e14\u9ad8\u6027\u80fd\u7684\u65b9\u5f0f\u6765\u8bbf\u95ee\u7f51\u7edc\u4e0a\u7684\u8fdc\u7a0b\u7cfb\u7edf\uff0c\u5728\u9700\u8981\u5b9a\u671f\u8bbf\u95ee\u5171\u4eab\u8d44\u6e90\u7684\u60c5\u51b5\u4e0b\u6548\u679c\u826f\u597d\u3002<\/p>\n<p>\u5728\u672c\u6307\u5357\u4e2d\uff0c\u60a8\u5c06\u5b66\u4e60\u5982\u4f55\u5728Rocky Linux 9\u4e0a\u5b89\u88c5NFS\u529f\u80fd\u6240\u9700\u7684\u8f6f\u4ef6\uff0c\u914d\u7f6e\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4e0a\u7684\u4e24\u4e2aNFS\u6302\u8f7d\u70b9\uff0c\u5e76\u6302\u8f7d\u548c\u5378\u8f7d\u8fdc\u7a0b\u5171\u4eab\u3002<\/p>\n<h2>\u5148\u51b3\u6761\u4ef6<\/h2>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u60a8\u5c06\u4f7f\u7528\u4e24\u53f0\u670d\u52a1\u5668\uff0c\u5176\u4e2d\u4e00\u53f0\u5c06\u5176\u6587\u4ef6\u7cfb\u7edf\u7684\u4e00\u90e8\u5206\u4e0e\u53e6\u4e00\u53f0\u5171\u4eab\u3002\u8981\u8ddf\u968f\u64cd\u4f5c\uff0c\u60a8\u9700\u8981\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>\u4e24\u53f0Rocky Linux 9\u670d\u52a1\u5668\u3002\u6bcf\u53f0\u670d\u52a1\u5668\u90fd\u5e94\u914d\u7f6e\u4e00\u4e2a\u5177\u6709sudo\u6743\u9650\u7684\u975eroot\u7528\u6237\uff0c\u4e00\u4e2a\u4f7f\u7528UFW\u8bbe\u7f6e\u7684\u9632\u706b\u5899\uff0c\u5982\u679c\u53ef\u7528\uff0c\u8fd8\u5e94\u914d\u7f6e\u79c1\u6709\u7f51\u7edc\u3002\u6709\u5173\u8bbe\u7f6e\u5177\u6709sudo\u6743\u9650\u7684\u975eroot\u7528\u6237\u548c\u9632\u706b\u5899\u7684\u5e2e\u52a9\uff0c\u8bf7\u9075\u5faa\u6211\u4eec\u7684<a href=\"#\">Rocky Linux 9\u521d\u59cb\u670d\u52a1\u5668\u8bbe\u7f6e\u6307\u5357<\/a>\u3002<\/li>\n<li>\u5982\u679c\u60a8\u4f7f\u7528Silicon Cloud vServers\u4f5c\u4e3a\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\uff0c\u53ef\u4ee5\u9605\u8bfb\u6211\u4eec\u7684\u6587\u6863<a href=\"#\">\u5982\u4f55\u521b\u5efaVPC<\/a>\uff0c\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u8bbe\u7f6e\u79c1\u6709\u7f51\u7edc\u7684\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u5171\u4eab\u5176\u76ee\u5f55\u7684\u670d\u52a1\u5668\u5c06\u88ab\u79f0\u4e3a\u201c\u4e3b\u673a\u201d\uff0c\u800c\u6302\u8f7d\u8fd9\u4e9b\u76ee\u5f55\u7684\u670d\u52a1\u5668\u5c06\u88ab\u79f0\u4e3a\u201c\u5ba2\u6237\u7aef\u201d\u3002\u60a8\u9700\u8981\u77e5\u9053\u4e24\u8005\u7684IP\u5730\u5740\u3002\u5982\u679c\u6709\u79c1\u6709\u7f51\u7edc\u5730\u5740\uff0c\u8bf7\u52a1\u5fc5\u4f7f\u7528\u79c1\u6709\u7f51\u7edc\u5730\u5740\u3002<\/p>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u201chost_ip\u201d\u548c\u201cclient_ip\u201d\u5c06\u4f5c\u4e3a\u8fd9\u4e9bIP\u5730\u5740\u7684\u5360\u4f4d\u7b26\u3002\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u66ff\u6362\u3002<\/p>\n<h2>\u7b2c\u4e00\u6b65\uff1a\u4e0b\u8f7d\u5e76\u5b89\u88c5\u7ec4\u4ef6<\/h2>\n<p>\u60a8\u5c06\u9996\u5148\u5728\u6bcf\u53f0\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5fc5\u8981\u7684\u7ec4\u4ef6\u3002<\/p>\n<h3>\u5728\u4e3b\u673a\u4e0a<\/h3>\n<p>\u5728\u4e3b\u673a\u670d\u52a1\u5668\u4e0a\uff0c\u4f7f\u7528<code>dnf<\/code>\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u5b89\u88c5<code>nfs-utils<\/code>\u8f6f\u4ef6\u5305\uff0c\u8be5\u8f6f\u4ef6\u5305\u5141\u8bb8\u60a8\u5171\u4eab\u76ee\u5f55\u3002<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\">sudo dnf install nfs-utils<\/code><\/pre>\n<p>\u4e00\u65e6\u5b89\u88c5\u4e86\u8fd9\u4e9b\u8f6f\u4ef6\u5305\uff0c\u8bf7\u5207\u6362\u5230\u5ba2\u6237\u7aef\u670d\u52a1\u5668\u3002<\/p>\n<h3>\u5728\u5ba2\u6237\u7aef\u4e0a<\/h3>\n<p>\u5728\u5ba2\u6237\u7aef\u670d\u52a1\u5668\u4e0a\uff0c\u60a8\u9700\u8981\u5b89\u88c5\u76f8\u540c\u7684<code>nfs-utils<\/code>\u8f6f\u4ef6\u5305\u3002<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\">sudo dnf install nfs-utils<\/code><\/pre>\n<p>\u73b0\u5728\u4e24\u53f0\u670d\u52a1\u5668\u90fd\u5df2\u5b89\u88c5\u5fc5\u9700\u7684\u8f6f\u4ef6\u5305\uff0c\u60a8\u53ef\u4ee5\u5f00\u59cb\u914d\u7f6e\u5b83\u4eec\u4e86\u3002<\/p>\n<h2>\u7b2c\u4e8c\u6b65\uff1a\u5728\u4e3b\u673a\u4e0a\u521b\u5efa\u5171\u4eab\u76ee\u5f55<\/h2>\n<p>\u4e3a\u4e86\u8bf4\u660eNFS\u6302\u8f7d\u5728\u8d85\u7ea7\u7528\u6237\u8bbf\u95ee\u65b9\u9762\u7684\u4e24\u79cd\u5173\u952e\u914d\u7f6e\u65b9\u5f0f\uff0c\u60a8\u5c06\u5171\u4eab\u4e24\u4e2a\u4e0d\u540c\u914d\u7f6e\u8bbe\u7f6e\u7684\u72ec\u7acb\u76ee\u5f55\u3002<\/p>\n<p>\u8d85\u7ea7\u7528\u6237\u53ef\u4ee5\u5728\u5176\u7cfb\u7edf\u4e0a\u7684\u4efb\u4f55\u5730\u65b9\u6267\u884c\u4efb\u4f55\u64cd\u4f5c\u3002\u7136\u800c\uff0cNFS\u6302\u8f7d\u7684\u76ee\u5f55\u5e76\u4e0d\u5c5e\u4e8e\u5b83\u4eec\u6240\u6302\u8f7d\u7684\u7cfb\u7edf\u7684\u4e00\u90e8\u5206\uff0c\u6240\u4ee5\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cNFS\u670d\u52a1\u5668\u62d2\u7edd\u6267\u884c\u9700\u8981\u8d85\u7ea7\u7528\u6237\u6743\u9650\u7684\u64cd\u4f5c\u3002\u8fd9\u4e2a\u9ed8\u8ba4\u9650\u5236\u610f\u5473\u7740\u5ba2\u6237\u7aef\u4e0a\u7684\u8d85\u7ea7\u7528\u6237\u4e0d\u80fd\u4ee5root\u8eab\u4efd\u5199\u5165\u6587\u4ef6\uff0c\u91cd\u65b0\u5206\u914d\u6240\u6709\u6743\uff0c\u6216\u5728NFS\u6302\u8f7d\u4e0a\u6267\u884c\u4efb\u4f55\u5176\u4ed6\u8d85\u7ea7\u7528\u6237\u4efb\u52a1\u3002<\/p>\n<p>\u7136\u800c\uff0c\u6709\u65f6\u5019\u5ba2\u6237\u7cfb\u7edf\u4e0a\u6709\u4e00\u4e9b\u53ef\u4fe1\u8d56\u7684\u7528\u6237\u9700\u8981\u5728\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u4e0a\u6267\u884c\u8fd9\u4e9b\u64cd\u4f5c\uff0c\u4f46\u4ed6\u4eec\u5bf9\u4e3b\u673a\u4e0a\u7684\u8d85\u7ea7\u7528\u6237\u8bbf\u95ee\u6743\u9650\u5e76\u6ca1\u6709\u9700\u6c42\u3002\u60a8\u53ef\u4ee5\u914d\u7f6eNFS\u670d\u52a1\u5668\u6765\u5141\u8bb8\u8fd9\u6837\u505a\uff0c\u5c3d\u7ba1\u8fd9\u4f1a\u5f15\u5165\u4e00\u5b9a\u7684\u98ce\u9669\uff0c\u5373\u6076\u610f\u7528\u6237\u53ef\u80fd\u83b7\u5f97\u5bf9\u6574\u4e2a\u4e3b\u673a\u7cfb\u7edf\u7684root\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n<h3>\u793a\u4f8b1\uff1a\u5bfc\u51fa\u901a\u7528\u6302\u8f7d\u70b9<\/h3>\n<p>\u5728\u7b2c\u4e00\u4e2a\u793a\u4f8b\u4e2d\uff0c\u60a8\u5c06\u521b\u5efa\u4e00\u4e2a\u901a\u7528\u7684NFS\u6302\u8f7d\u70b9\uff0c\u4f7f\u7528\u9ed8\u8ba4\u7684NFS\u884c\u4e3a\uff0c\u4ee5\u4f7f\u5177\u6709\u5ba2\u6237\u7aef\u4e0aroot\u6743\u9650\u7684\u7528\u6237\u96be\u4ee5\u4f7f\u7528\u90a3\u4e9b\u5ba2\u6237\u7aef\u8d85\u7ea7\u7528\u6237\u6743\u9650\u4e0e\u4e3b\u673a\u4ea4\u4e92\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c\u8fd9\u6837\u7684\u65b9\u5f0f\u6765\u5b58\u50a8\u4f7f\u7528\u5185\u5bb9\u7ba1\u7406\u7cfb\u7edf\u4e0a\u4f20\u7684\u6587\u4ef6\uff0c\u6216\u8005\u4e3a\u7528\u6237\u521b\u5efa\u7a7a\u95f4\u4ee5\u4fbf\u8f7b\u677e\u5171\u4eab\u9879\u76ee\u6587\u4ef6\u3002<\/p>\n<p>\u9996\u5148\uff0c\u4f7f\u7528<code>mkdir<\/code>\u547d\u4ee4\u7684<code>-p<\/code>\u9009\u9879\u521b\u5efa\u5171\u4eab\u76ee\u5f55\uff08\u8be5\u9009\u9879\u5c06\u5728\u9700\u8981\u65f6\u521b\u5efa\u6574\u4e2a\u6587\u4ef6\u8def\u5f84\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\">sudo mkdir \/var\/nfs\/general -p<\/code><\/pre>\n<p>\u56e0\u4e3a\u60a8\u662f\u7528<code>sudo<\/code>\u521b\u5efa\u7684\uff0c\u6240\u4ee5\u8be5\u76ee\u5f55\u5f52\u4e3b\u673a\u7684root\u7528\u6237\u6240\u6709\u3002<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\">ls -dl \/var\/nfs\/general<\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/div>\n<pre class=\"post-pre\"><code class=\"language-bash\">drwxr-xr-x 2 root root 4096 Apr 17 23:51 \/var\/nfs\/general<\/code><\/pre>\n<p>\u4e3a\u4e86\u5b89\u5168\u8d77\u89c1\uff0cNFS\u4f1a\u5c06\u5ba2\u6237\u7aef\u4e0a\u7684\u4efb\u4f55root\u64cd\u4f5c\u90fd\u8f6c\u6362\u4e3a<code>nobody<\/code>\u7528\u6237\u3002\u56e0\u6b64\uff0c\u60a8\u9700\u8981\u5c06\u76ee\u5f55\u6240\u6709\u6743\u66f4\u6539\u4e3a<code>nobody<\/code>\u3002<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\">sudo chown nobody \/var\/nfs\/general<\/code><\/pre>\n<p>\u60a8\u73b0\u5728\u53ef\u4ee5\u51c6\u5907\u5bfc\u51fa\u8fd9\u4e2a\u76ee\u5f55\u4e86\u3002<\/p>\n<h3>\u793a\u4f8b2\uff1a\u5bfc\u51fa\u7528\u6237\u4e3b\u76ee\u5f55<\/h3>\n<p>\u5728\u7b2c\u4e8c\u4e2a\u793a\u4f8b\u4e2d\uff0c\u76ee\u6807\u662f\u4f7f\u7528\u6237\u4e3b\u76ee\u5f55\u5b58\u50a8\u5728\u4e3b\u673a\u4e0a\uff0c\u5728\u5ba2\u6237\u7aef\u670d\u52a1\u5668\u4e0a\u53ef\u7528\uff0c\u5e76\u5141\u8bb8\u90a3\u4e9b\u5ba2\u6237\u7aef\u670d\u52a1\u5668\u7684\u53ef\u4fe1\u7ba1\u7406\u5458\u65b9\u4fbf\u5730\u8bbf\u95ee\u6240\u9700\u7684\u7528\u6237\u7ba1\u7406\u6743\u9650\u3002<\/p>\n<p>\u4e3a\u4e86\u5b9e\u73b0\u6b64\u76ee\u7684\uff0c\u60a8\u9700\u8981\u5bfc\u51fa<code>\/home<\/code>\u76ee\u5f55\u3002\u7531\u4e8e\u8be5\u76ee\u5f55\u5df2\u5b58\u5728\uff0c\u60a8\u65e0\u9700\u521b\u5efa\u65b0\u76ee\u5f55\u3002\u60a8\u4e5f\u4e0d\u9700\u8981\u66f4\u6539\u6743\u9650\u3002\u5982\u679c\u60a8\u8fd9\u6837\u505a\u7684\u8bdd\uff0c\u53ef\u80fd\u4f1a\u7ed9\u4e3b\u673a\u4e0a\u4efb\u4f55\u62e5\u6709\u5bb6\u76ee\u5f55\u7684\u7528\u6237\u5e26\u6765\u5404\u79cd\u95ee\u9898\u3002<\/p>\n<h2>\u7b2c\u4e09\u6b65\uff1a\u5728\u4e3b\u673a\u670d\u52a1\u5668\u4e0a\u914d\u7f6eNFS\u5bfc\u51fa<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u60a8\u5c06\u8fdb\u5165NFS\u914d\u7f6e\u6587\u4ef6\uff0c\u8bbe\u7f6e\u5171\u4eab\u8fd9\u4e9b\u8d44\u6e90\u3002<\/p>\n<p>Rocky Linux 9\u81ea\u5e26\u7684\u9ed8\u8ba4\u6587\u672c\u7f16\u8f91\u5668\u662f<code>vi<\/code>\u3002<code>vi<\/code>\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u4f46\u5bf9\u4e8e\u7f3a\u4e4f\u7ecf\u9a8c\u7684\u7528\u6237\u6765\u8bf4\u53ef\u80fd\u6709\u4e9b\u96be\u4ee5\u7406\u89e3\u3002\u60a8\u53ef\u80fd\u5e0c\u671b\u5b89\u88c5\u4e00\u4e2a\u66f4\u7528\u6237\u53cb\u597d\u7684\u7f16\u8f91\u5668\uff0c\u5982<code>nano<\/code>\uff0c\u6765\u4fbf\u4e8e\u5728Rocky Linux 9\u670d\u52a1\u5668\u4e0a\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\">sudo dnf install nano<\/code><\/pre>\n<p>\u5728\u4e3b\u673a\u4e0a\uff0c\u4ee5root\u6743\u9650\u4f7f\u7528<code>nano<\/code>\u6216\u60a8\u559c\u6b22\u7684\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00<code>\/etc\/exports<\/code>\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\">sudo nano \/etc\/exports<\/code><\/pre>\n<p>\u5728Rocky Linux 9\u4e0a\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u6b64\u6587\u4ef6\u5c06\u4e3a\u7a7a\u3002\u60a8\u9700\u8981\u521b\u5efa\u4ee5\u4e0b\u8bed\u6cd5\uff1a<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\"><mark>directory_to_share<\/mark>    <mark>client<\/mark>(<mark>share_option1<\/mark>,<mark>...<\/mark>,<mark>share_optionN<\/mark>)<\/code><\/pre>\n<p>\u4e3a\u60a8\u8ba1\u5212\u5171\u4eab\u7684\u6bcf\u4e2a\u76ee\u5f55\u6dfb\u52a0\u4e00\u884c\u3002\u8bf7\u786e\u4fdd\u5c06\u6b64\u5904\u663e\u793a\u7684<code>client_ip<\/code>\u5360\u4f4d\u7b26\u66f4\u6539\u4e3a\u60a8\u5b9e\u9645\u7684IP\u5730\u5740\u3002<\/p>\n<p><code>\/etc\/exports<\/code>\u53ef\u7b80\u8ff0\u4e3a\u201c\u5bfc\u51fa\u76ee\u5f55\u201d\u3002<\/p>\n<p>\u8fd9\u662f\u6587\u7ae0\u300a\u5982\u4f55\u5728Rocky Linux 9\u4e0a\u8bbe\u7f6eNFS\u6302\u8f7d\u300b\u7684\u7b2c2\u90e8\u5206\uff08\u51714\u90e8\u5206\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>\/var\/nfs\/general    <mark>client_ip<\/mark>(rw,sync,no_subtree_check)\r\n\/home               <mark>client_ip<\/mark>(rw,sync,no_root_squash,no_subtree_check)\r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u91cc\uff0c\u60a8\u6b63\u5728\u4e3a\u4e24\u4e2a\u76ee\u5f55\u4f7f\u7528\u76f8\u540c\u7684\u914d\u7f6e\u9009\u9879\uff0c\u53ea\u6709<code>no_root_squash<\/code>\u9664\u5916\u3002\u4ee5\u4e0b\u662f\u6bcf\u4e2a\u9009\u9879\u7684\u542b\u4e49\uff1a<\/p>\n<ul class=\"post-ul\">\n<li><strong>rw<\/strong>: \u6b64\u9009\u9879\u8d4b\u4e88\u5ba2\u6237\u7aef\u8ba1\u7b97\u673a\u5bf9\u5377\u7684\u8bfb\u5199\u8bbf\u95ee\u6743\u9650\u3002<\/li>\n<li><strong>sync<\/strong>: \u6b64\u9009\u9879\u5f3a\u5236NFS\u5728\u56de\u590d\u4e4b\u524d\u5c06\u66f4\u6539\u5199\u5165\u78c1\u76d8\u3002\u8fd9\u4f1a\u5e26\u6765\u4e00\u4e2a\u66f4\u7a33\u5b9a\u548c\u4e00\u81f4\u7684\u73af\u5883\uff0c\u56e0\u4e3a\u56de\u590d\u53cd\u6620\u4e86\u8fdc\u7a0b\u5377\u7684\u5b9e\u9645\u72b6\u6001\u3002\u7136\u800c\uff0c\u5b83\u4e5f\u4f1a\u964d\u4f4e\u6587\u4ef6\u64cd\u4f5c\u7684\u901f\u5ea6\u3002<\/li>\n<li><strong>no_subtree_check<\/strong>: \u6b64\u9009\u9879\u963b\u6b62\u5b50\u6811\u68c0\u67e5\u3002\u5b50\u6811\u68c0\u67e5\u662f\u4e00\u4e2a\u8fc7\u7a0b\uff0c\u4e3b\u673a\u5fc5\u987b\u4e3a\u6bcf\u4e2a\u8bf7\u6c42\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b9e\u9645\u4ecd\u5728\u5bfc\u51fa\u7684\u6811\u4e2d\u53ef\u7528\u3002\u5f53\u5ba2\u6237\u7aef\u6253\u5f00\u6587\u4ef6\u65f6\uff0c\u5982\u679c\u6587\u4ef6\u88ab\u91cd\u547d\u540d\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8bb8\u591a\u95ee\u9898\u3002\u5728\u51e0\u4e4e\u6240\u6709\u60c5\u51b5\u4e0b\uff0c\u7981\u7528\u5b50\u6811\u68c0\u67e5\u90fd\u662f\u66f4\u597d\u7684\u9009\u62e9\u3002<\/li>\n<li><strong>no_root_squash<\/strong>: \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cNFS\u4f1a\u5c06\u8fdc\u7a0broot\u7528\u6237\u7684\u8bf7\u6c42\u8f6c\u6362\u4e3a\u670d\u52a1\u5668\u4e0a\u7684\u975e\u7279\u6743\u7528\u6237\u3002\u8fd9\u65e8\u5728\u4f5c\u4e3a\u4e00\u9879\u5b89\u5168\u529f\u80fd\uff0c\u4ee5\u9632\u6b62\u5ba2\u6237\u7aef\u4e0a\u7684root\u8d26\u6237\u4ee5root\u8eab\u4efd\u4f7f\u7528\u4e3b\u673a\u7684NFS\u6587\u4ef6\u7cfb\u7edf\u3002<code>no_root_squash<\/code>\u4f1a\u7981\u7528\u7279\u5b9a\u5171\u4eab\u7684\u6b64\u884c\u4e3a\u3002<\/li>\n<\/ul>\n<p>\u5f53\u60a8\u5b8c\u6210\u5bf9\u6587\u4ef6\u7684\u66f4\u6539\u540e\uff0c\u8bf7\u4fdd\u5b58\u5e76\u5173\u95ed\u6587\u4ef6\u3002\u5982\u679c\u60a8\u6b63\u5728\u4f7f\u7528nano\u6587\u672c\u7f16\u8f91\u5668\uff0c\u8bf7\u6309\u4e0b<code>Ctrl+X<\/code>\uff0c\u7136\u540e\u5728\u63d0\u793a\u65f6\u6309\u4e0b<code>Y<\/code>\uff0c\u6700\u540e\u6309\u4e0b<code>Enter<\/code>\u952e\u3002\u7136\u540e\uff0c\u4e3a\u4f7f\u60a8\u914d\u7f6e\u7684\u5171\u4eab\u5bf9\u5ba2\u6237\u7aef\u53ef\u7528\uff0c\u8bf7\u542f\u52a8NFS\u670d\u52a1\u5668\u5e76\u4f7f\u7528<code>systemctl<\/code>\u547d\u4ee4\u5c06\u5176\u8bbe\u7f6e\u4e3a\u81ea\u52a8\u8fd0\u884c\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"host:$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> nfs-server<\/li>\n<li data-prefix=\"host:$\"><span class=\"token function\">sudo<\/span> systemctl start nfs-server<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4f7f\u7528<code>systemctl status<\/code>\u547d\u4ee4\u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u5df2\u7ecf\u542f\u52a8\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"host:$\"><span class=\"token function\">sudo<\/span> systemctl status nfs-server<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/div>\n<pre class=\"post-pre\"><code>\u25cf nfs-server.service - NFS server and services\r\nLoaded: loaded (\/usr\/lib\/systemd\/system\/nfs-server.service; enabled; vendor preset: >\r\nDrop-In: \/run\/systemd\/generator\/nfs-server.service.d\r\n\u2514\u2500order-with-mounts.conf\r\nActive: active (exited) since Mon 2022-08-08 17:41:18 UTC; 4s ago\r\nProcess: 14348 ExecStart=\/bin\/sh -c if systemctl -q is-active gssproxy; then systemct>\r\nProcess: 14336 ExecStart=\/usr\/sbin\/rpc.nfsd (code=exited, status=0\/SUCCESS)\r\nProcess: 14335 ExecStartPre=\/usr\/sbin\/exportfs -r (code=exited, status=0\/SUCCESS)\r\nMain PID: 14348 (code=exited, status=0\/SUCCESS)\r\nAug 08 17:41:18 rocky9-nfs-host systemd[1]: Starting NFS server and services...\r\nAug 08 17:41:18 rocky9-nfs-host systemd[1]: Started NFS server and services.<\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5728\u4f60\u5b9e\u9645\u4f7f\u7528\u65b0\u7684\u5171\u4eab\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u9632\u706b\u5899\u89c4\u5219\u5141\u8bb8\u5171\u4eab\u7684\u6d41\u91cf\u3002<\/p>\n<h2>\u7b2c\u56db\u6b65\uff1a\u8c03\u6574\u4e3b\u673a\u9632\u706b\u5899<\/h2>\n<p>\u5982\u679c\u60a8\u6309\u7167\u6211\u4eec\u5173\u4e8e\u4f7f\u7528Rocky Linux 9\u7684\u670d\u52a1\u5668\u521d\u59cb\u8bbe\u7f6e\u6307\u5357\u4e2d\u63a8\u8350\u7684\u65b9\u5f0f\u8fd0\u884c<code>firewalld<\/code>\u9632\u706b\u5899\uff0c\u8bf7\u68c0\u67e5<code>firewall-cmd<\/code>\u8f93\u51fa\u4e2d\u7684<code>services<\/code>\u884c\uff0c\u4ee5\u786e\u5b9a\u5f53\u524d\u5141\u8bb8\u7684\u670d\u52a1\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"host:$\">firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;list-all <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> services<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/div>\n<pre class=\"post-pre\"><code>services: cockpit dhcpv6-client ssh<\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5728\u60a8\u7684\u7cfb\u7edf\u4e0a\uff0c\u53ea\u5141\u8bb8\u6838\u5fc3\u7cfb\u7edf\u670d\u52a1\uff0c\u6240\u4ee5\u60a8\u9700\u8981\u4e3aNFS\u6d41\u91cf\u6dfb\u52a0\u89c4\u5219\u3002Rocky Linux\u4e0a\u7684NFS\u4f7f\u7528\u4e09\u79cd\u4e0d\u540c\u7684\u670d\u52a1\uff0c\u5e76\u4e14\u5b83\u4eec\u90fd\u9700\u8981\u901a\u8fc7\u9632\u706b\u5899\u8fdb\u884c\u5141\u8bb8\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>firewall-cmd<\/code>\u6765\u6dfb\u52a0\u8fd9\u4e9b\u89c4\u5219\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"host:$\">firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;add-service<span class=\"token operator\">=<\/span>nfs<\/li>\n<li data-prefix=\"host:$\">firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;add-service<span class=\"token operator\">=<\/span>mountd<\/li>\n<li data-prefix=\"host:$\">firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;add-service<span class=\"token operator\">=<\/span>rpc-bind<\/li>\n<li data-prefix=\"host:$\">firewall-cmd <span class=\"token parameter variable\">&#8211;reload<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u60a8\u53ef\u4ee5\u9a8c\u8bc1\u5b83\u4eec\u662f\u5426\u5df2\u88ab\u6dfb\u52a0\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"host:$\">firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;list-all <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> services<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>services: cockpit dhcpv6-client <mark>mountd nfs rpc-bind<\/mark> ssh<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u8bf7\u6ce8\u610f\uff0c\u8fd9\u5c06\u5728\u5168\u7403\u8303\u56f4\u5185\u5f00\u653e\u9632\u706b\u5899\u4ee5\u63d0\u4f9b\u8fd9\u4e9b\u670d\u52a1\uff0c\u800c\u4e0d\u4ec5\u4ec5\u9650\u4e8e\u5355\u4e2a\u5ba2\u6237\u7aef\u3002\u8fd9\u901a\u5e38\u4e0d\u662f\u95ee\u9898\uff0c\u56e0\u4e3a\u60a8\u5df2\u7ecf\u914d\u7f6e\u4e86NFS\u6302\u8f7d\u4ec5\u53ef\u8bbf\u95ee\u5355\u4e2aIP\u5730\u5740\u3002\u5982\u679c\u60a8\u9700\u8981\u76f4\u63a5\u5411\u9632\u706b\u5899\u914d\u7f6e\u6dfb\u52a0\u66f4\u591a\u5b89\u5168\u6027\uff0c\u53ef\u4ee5\u8003\u8651\u5b9e\u65bd\u9632\u706b\u5899\u533a\u57df\u3002<\/p>\n<h2>\u6b65\u9aa4\u4e94 \u2014 \u5728\u5ba2\u6237\u7aef\u4e0a\u521b\u5efa\u6302\u8f7d\u70b9\u548c\u6302\u8f7d\u76ee\u5f55<\/h2>\n<p>\u65e2\u7136\u4e3b\u673a\u670d\u52a1\u5668\u5df2\u914d\u7f6e\u5e76\u63d0\u4f9b\u5176\u5171\u4eab\u6587\u4ef6\uff0c\u60a8\u5c06\u51c6\u5907\u60a8\u7684\u5ba2\u6237\u7aef\u3002<\/p>\n<p>\u4e3a\u4e86\u5728\u5ba2\u6237\u7aef\u4e0a\u4f7f\u8fdc\u7a0b\u5171\u4eab\u53ef\u7528\uff0c\u60a8\u9700\u8981\u5c06\u4e3b\u673a\u4e0a\u8981\u5171\u4eab\u7684\u76ee\u5f55\u6302\u8f7d\u5230\u5ba2\u6237\u7aef\u4e0a\u7684\u7a7a\u76ee\u5f55\u4e2d\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">\u6ce8\u610f\uff1a\u5982\u679c\u60a8\u7684\u6302\u8f7d\u70b9\u4e2d\u6709\u6587\u4ef6\u548c\u76ee\u5f55\uff0c\u5728\u6302\u8f7dNFS\u5171\u4eab\u540e\u5b83\u4eec\u4f1a\u88ab\u9690\u85cf\u8d77\u6765\u3002\u4e3a\u907f\u514d\u91cd\u8981\u6587\u4ef6\u7684\u4e22\u5931\uff0c\u8bf7\u786e\u4fdd\u5982\u679c\u60a8\u5c06\u5176\u6302\u8f7d\u5230\u5df2\u5b58\u5728\u7684\u76ee\u5f55\u4e2d\uff0c\u8be5\u76ee\u5f55\u662f\u7a7a\u7684\u3002\u60a8\u5c06\u4e3a\u60a8\u7684\u6302\u8f7d\u521b\u5efa\u4e24\u4e2a\u76ee\u5f55\u3002<\/p>\n<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"client:$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/nfs\/general<\/li>\n<li data-prefix=\"client:$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/nfs\/home<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u73b0\u5728\u60a8\u5df2\u7ecf\u627e\u5230\u4e86\u4e00\u4e2a\u4f4d\u7f6e\u6765\u653e\u7f6e\u8fdc\u7a0b\u5171\u4eab\uff0c\u5e76\u4e14\u5df2\u7ecf\u6253\u5f00\u4e86\u9632\u706b\u5899\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e3b\u673a\u670d\u52a1\u5668\u7684IP\u5730\u5740\u6765\u6302\u8f7d\u5171\u4eab\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"client:$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> <mark>host_ip<\/mark>:\/var\/nfs\/general \/nfs\/general<\/li>\n<li data-prefix=\"client:$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> <mark>host_ip<\/mark>:\/home \/nfs\/home<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u8fd9\u4e9b\u547d\u4ee4\u5c06\u628a\u4e3b\u673a\u8ba1\u7b97\u673a\u4e0a\u7684\u5171\u4eab\u6587\u4ef6\u5939\u6302\u8f7d\u5230\u5ba2\u6237\u7aef\u673a\u5668\u4e0a\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u6765\u786e\u8ba4\u5b83\u4eec\u662f\u5426\u6210\u529f\u6302\u8f7d\u3002\u53ef\u4ee5\u4f7f\u7528 <code>mount<\/code> \u6216 <code>findmnt<\/code> \u547d\u4ee4\u6765\u68c0\u67e5\uff0c\u4f46 <code>df -h<\/code> \u63d0\u4f9b\u4e86\u66f4\u6613\u8bfb\u7684\u8f93\u51fa\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"client:$\"><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Filesystem Size Used Avail Use% Mounted on Filesystem Size Used Avail Use% Mounted on devtmpfs 370M 0 370M 0% \/dev tmpfs 405M 0 405M 0% \/dev\/shm tmpfs 405M 11M 394M 3% \/run tmpfs 405M 0 405M 0% \/sys\/fs\/cgroup \/dev\/vda1 25G 1.5G 24G 6% \/ tmpfs 81M 0 81M 0% \/run\/user\/0 <mark>host_ip:\/var\/nfs\/general 25G 1.6G 24G 7% \/nfs\/general<\/mark> <mark>host_ip:\/home 25G 1.6G 24G 7% \/nfs\/home<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u60a8\u6302\u8f7d\u7684\u4e24\u4e2a\u5171\u4eab\u90fd\u51fa\u73b0\u5728\u5e95\u90e8\u3002\u56e0\u4e3a\u5b83\u4eec\u662f\u4ece\u540c\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u7684\uff0c\u6240\u4ee5\u5b83\u4eec\u663e\u793a\u76f8\u540c\u7684\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5\u3002<\/p>\n<h2>\u6b65\u9aa4\u516d \u2014 \u6d4b\u8bd5NFS\u8bbf\u95ee<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u901a\u8fc7\u5411\u6bcf\u4e2a\u5171\u4eab\u8d44\u6e90\u4e2d\u5199\u5165\u4e00\u4e9b\u5185\u5bb9\u6765\u6d4b\u8bd5\u5bf9\u5176\u7684\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n<h3>\u8303\u4f8b1\uff1a\u666e\u901a\u5171\u4eab<\/h3>\n<p>\u9996\u5148\uff0c\u5c06\u4e00\u4e2a\u6d4b\u8bd5\u6587\u4ef6\u5199\u5165 <code>\/var\/nfs\/general<\/code> \u5171\u4eab\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"client:$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">touch<\/span> \/nfs\/general\/general.test<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u7136\u540e\uff0c\u68c0\u67e5\u5b83\u7684\u6240\u6709\u6743\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"client:$\"><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> \/nfs\/general\/general.test<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>-rw-r&#8211;r&#8211;. 1 nobody nobody 0 Aug 8 18:24 \/nfs\/general\/general.test<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u56e0\u4e3a\u60a8\u5728\u6302\u8f7d\u8fd9\u4e2a\u5377\u65f6\u6ca1\u6709\u66f4\u6539NFS\u7684\u9ed8\u8ba4\u884c\u4e3a\uff0c\u5e76\u4e14\u901a\u8fc7 <code>sudo<\/code> \u547d\u4ee4\u4ee5\u5ba2\u6237\u7aef\u7684root\u7528\u6237\u521b\u5efa\u4e86\u6587\u4ef6\uff0c\u6240\u4ee5\u8be5\u6587\u4ef6\u7684\u6240\u6709\u6743\u9ed8\u8ba4\u5f52\u5c5e\u4e8e <code>nobody<\/code>\u3002\u5ba2\u6237\u7aef\u7684\u8d85\u7ea7\u7528\u6237\u5c06\u65e0\u6cd5\u6267\u884c\u5178\u578b\u7684\u7ba1\u7406\u64cd\u4f5c\uff0c\u6bd4\u5982\u66f4\u6539\u6587\u4ef6\u7684\u6240\u6709\u8005\u6216\u4e3a\u7528\u6237\u7ec4\u521b\u5efa\u65b0\u76ee\u5f55\uff0c\u5bf9\u4e8e\u8fd9\u4e2aNFS\u6302\u8f7d\u7684\u5171\u4eab\u3002<\/p>\n<h3>\u8303\u4f8b2\uff1a\u5bb6\u76ee\u5f55\u5171\u4eab<\/h3>\n<p>\u4e3a\u4e86\u6bd4\u8f83\u901a\u7528\u76ee\u5f55\u5171\u4eab\u548c\u4e3b\u76ee\u5f55\u5171\u4eab\u7684\u6743\u9650\uff0c\u4f7f\u7528\u540c\u6837\u7684\u65b9\u5f0f\u5728 <code>\/nfs\/home<\/code> \u4e2d\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"client:$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">touch<\/span> \/nfs\/home\/home.test<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u7136\u540e\u67e5\u770b\u6587\u4ef6\u7684\u6240\u6709\u6743\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"client:$\"><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> \/nfs\/home\/home.test<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>-rw-r&#8211;r&#8211;. 1 root root 0 Aug 8 18:26 \/nfs\/home\/home.test<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u60a8\u4f7f\u7528 <code>sudo<\/code> \u547d\u4ee4\u4ee5root\u8eab\u4efd\u521b\u5efa\u4e86 <code>home.test<\/code>\uff0c\u8fd9\u4e0e\u60a8\u521b\u5efa <code>general.test<\/code> \u6587\u4ef6\u7684\u65b9\u5f0f\u5b8c\u5168\u76f8\u540c\u3002\u7136\u800c\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5b83\u662f\u7531 <code>root<\/code> \u62e5\u6709\u7684\uff0c\u56e0\u4e3a\u60a8\u5728\u6b64\u6302\u8f7d\u70b9\u4e0a\u6307\u5b9a\u4e86 <code>no_root_squash<\/code> \u9009\u9879\uff0c\u8986\u76d6\u4e86\u9ed8\u8ba4\u884c\u4e3a\u3002\u8fd9\u5141\u8bb8\u60a8\u7684\u5ba2\u6237\u7aef\u4e0a\u7684root\u7528\u6237\u53ef\u4ee5\u50cfroot\u4e00\u6837\u64cd\u4f5c\uff0c\u5e76\u4e14\u4f7f\u7528\u6237\u8d26\u6237\u7684\u7ba1\u7406\u66f4\u52a0\u65b9\u4fbf\u3002\u540c\u65f6\uff0c\u8fd9\u610f\u5473\u7740\u60a8\u4e0d\u5fc5\u5728\u4e3b\u673a\u4e0a\u7ed9\u8fd9\u4e9b\u7528\u6237root\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n<h2>\u6b65\u9aa4\u4e03 \u2014 \u5728\u542f\u52a8\u65f6\u6302\u8f7d\u8fdc\u7a0bNFS\u76ee\u5f55<\/h2>\n<p>\u8fd9\u662f\u6587\u7ae0\u300a\u5982\u4f55\u5728Rocky Linux 9\u4e0a\u8bbe\u7f6eNFS\u6302\u8f7d\u300b\u7684\u7b2c4\u90e8\u5206\uff08\u51714\u90e8\u5206\uff09\u3002<\/p>\n<p><strong>\u81ea\u52a8\u6302\u8f7dNFS\u5171\u4eab<\/strong><\/p>\n<p>\u60a8\u53ef\u4ee5\u5c06\u8fdc\u7a0bNFS\u5171\u4eab\u6dfb\u52a0\u5230\u5ba2\u6237\u7aef\u7684<code>\/etc\/fstab<\/code>\u6587\u4ef6\u4e2d\uff0c\u4ece\u800c\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u6302\u8f7d\u3002<\/p>\n<p>\u4f7f\u7528\u60a8\u7684\u6587\u672c\u7f16\u8f91\u5668\u4ee5root\u6743\u9650\u6253\u5f00<code>\/etc\/fstab<\/code>\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\">sudo nano \/etc\/fstab<\/code><\/pre>\n<p>\u5728\u6587\u4ef6\u5e95\u90e8\uff0c\u4e3a\u6bcf\u4e2a\u5171\u4eab\u6dfb\u52a0\u4e00\u884c\u3002\u5b83\u4eec\u770b\u8d77\u6765\u4f1a\u50cf\u8fd9\u6837\uff1a<\/p>\n<pre class=\"post-pre\"><code class=\"language-ini\">. . .\r\n<mark>host_ip<\/mark>:\/var\/nfs\/general    \/nfs\/general   nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0\r\n<mark>host_ip<\/mark>:\/home               \/nfs\/home      nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0\r\n<\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\"><strong>\u6ce8\u610f\uff1a<\/strong>\u4f60\u53ef\u4ee5\u5728NFS\u624b\u518c\u4e2d\u627e\u5230\u6709\u5173\u4f60\u6240\u6307\u5b9a\u9009\u9879\u7684\u66f4\u591a\u4fe1\u606f\u3002\u867d\u7136\u8fde\u63a5\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\uff0c\u5e76\u4e14\u5171\u4eab\u53ef\u80fd\u9700\u8981\u4e00\u6bb5\u65f6\u95f4\u624d\u80fd\u53ef\u7528\uff0c\u4f46\u5ba2\u6237\u7aef\u4f1a\u5728\u542f\u52a8\u65f6\u81ea\u52a8\u6302\u8f7d\u8fdc\u7a0b\u5206\u533a\u3002<\/p>\n<\/div>\n<h2>\u6b65\u9aa4\u516b &#8211; \u5378\u8f7dNFS\u8fdc\u7a0b\u5171\u4eab<\/h2>\n<p>\u5982\u679c\u60a8\u4e0d\u518d\u5e0c\u671b\u8fdc\u7a0b\u76ee\u5f55\u5728\u7cfb\u7edf\u4e2d\u6302\u8f7d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u79bb\u5f00\u5171\u4eab\u76ee\u5f55\u7ed3\u6784\u5e76\u5378\u8f7d\u6765\u53d6\u6d88\u6302\u8f7d\uff0c\u5c31\u50cf\u8fd9\u6837\uff1a<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\">\r\ncd ~\r\nsudo umount \/nfs\/home\r\nsudo umount \/nfs\/general\r\n<\/code><\/pre>\n<p>\u8bf7\u6ce8\u610f\uff0c\u8be5\u547d\u4ee4\u7684\u540d\u79f0\u662f<code>umount<\/code>\uff0c\u800c\u4e0d\u662f\u60a8\u53ef\u80fd\u671f\u671b\u7684<code>unmount<\/code>\u3002<\/p>\n<p>\u8fd9\u5c06\u5220\u9664\u8fdc\u7a0b\u5171\u4eab\uff0c\u4ec5\u4fdd\u7559\u60a8\u7684\u672c\u5730\u5b58\u50a8\u53ef\u8bbf\u95ee\u3002<\/p>\n<pre class=\"post-pre\"><code class=\"language-bash\">df -h<\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/div>\n<pre class=\"post-pre\"><code class=\"language-text\">\r\nFilesystem      Size  Used Avail Use% Mounted on\r\ndevtmpfs        370M    0  370M   0% \/dev\r\ntmpfs           405M    0  405M   0% \/dev\/shm\r\ntmpfs           405M   11M  394M   3% \/run\r\ntmpfs           405M    0  405M   0% \/sys\/fs\/cgroup\r\n\/dev\/vda1        25G  1.5G   24G   6% \/\r\ntmpfs            81M    0   81M   0% \/run\/user\/0\r\n<\/code><\/pre>\n<p>\u5982\u679c\u4f60\u5e0c\u671b\u5728\u4e0b\u6b21\u91cd\u65b0\u542f\u52a8\u65f6\u963b\u6b62\u5b83\u4eec\u88ab\u91cd\u65b0\u6302\u8f7d\uff0c\u53ef\u4ee5\u7f16\u8f91<code>\/etc\/fstab<\/code>\uff0c\u8981\u4e48\u5220\u9664\u8be5\u884c\uff0c\u8981\u4e48\u5728\u884c\u7684\u5f00\u5934\u52a0\u4e0a<code>#<\/code>\u5b57\u7b26\u8fdb\u884c\u6ce8\u91ca\u3002\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u79fb\u9664<code>auto<\/code>\u9009\u9879\u6765\u963b\u6b62\u81ea\u52a8\u6302\u8f7d\uff0c\u8fd9\u6837\u4f60\u4ecd\u7136\u53ef\u4ee5\u624b\u52a8\u6302\u8f7d\u5b83\u3002<\/p>\n<h2>\u7ed3\u8bba<\/h2>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u60a8\u521b\u5efa\u4e86\u4e00\u4e2aNFS\u4e3b\u673a\uff0c\u5e76\u901a\u8fc7\u521b\u5efa\u4e24\u4e2a\u4e0d\u540c\u7684NFS\u6302\u8f7d\u6765\u8bf4\u660e\u4e86\u4e00\u4e9b\u5173\u952e\u7684NFS\u884c\u4e3a\uff0c\u8fd9\u4e9b\u6302\u8f7d\u60a8\u4e0eNFS\u5ba2\u6237\u7aef\u5171\u4eab\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6253\u7b97\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5b9e\u65bdNFS\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\u8be5\u534f\u8bae\u672c\u8eab\u5e76\u6ca1\u6709\u52a0\u5bc6\u3002\u5728\u5171\u4eab\u6570\u636e\u65f6\uff0c\u5982\u679c\u662f\u5728\u79c1\u6709\u7f51\u7edc\u4e2d\uff0c\u8fd9\u53ef\u80fd\u4e0d\u662f\u4e00\u4e2a\u95ee\u9898\u3002\u4f46\u5728\u5176\u4ed6\u60c5\u51b5\u4e0b\uff0c\u4e3a\u4e86\u4fdd\u62a4\u4f60\u7684\u6570\u636e\uff0c\u4f1a\u9700\u8981\u4f7f\u7528VPN\u6216\u5176\u4ed6\u7c7b\u578b\u7684\u52a0\u5bc6\u96a7\u9053\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NFS\u7b80\u4ecb NFS\uff08\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff09\u662f\u4e00\u79cd\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u534f\u8bae\uff0c\u5141\u8bb8\u5c06\u8fdc\u7a0b\u76ee\u5f55\u6302\u8f7d\u5230\u670d\u52a1\u5668\u4e0a\u3002\u8fd9\u4f7f\u5f97\u60a8\u80fd\u591f\u5728\u4e0d\u540c\u4f4d [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[483,481,432,482,331],"class_list":["post-90","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-nfs","tag-rocky-linux-9","tag-482","tag-331"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Rocky Linux 9 NFS\u6302\u8f7d\u914d\u7f6e\u6559\u7a0b\uff1a\u8f7b\u677e\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u8be6\u7ec6\u6307\u5bfc\u60a8\u5982\u4f55\u5728Rocky Linux 9\u7cfb\u7edf\u4e0a\u8bbe\u7f6eNFS\uff08\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff09\u6302\u8f7d\uff0c\u5b9e\u73b0\u9ad8\u6548\u4fbf\u6377\u7684\u6587\u4ef6\u5171\u4eab\u3002\u4ece\u5b89\u88c5\u5230\u914d\u7f6e\uff0c\u4e00\u6b65\u6b65\u6559\u60a8\u8f7b\u677e\u638c\u63e1NFS\u6302\u8f7d\u6280\u5de7\uff0c\u4f18\u5316\u60a8\u7684Linux\u6587\u4ef6\u7ba1\u7406\u4f53\u9a8c\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728rocky-linux-9\u4e0a\u8bbe\u7f6enfs\u6302\u8f7d\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rocky Linux 9 NFS\u6302\u8f7d\u914d\u7f6e\u6559\u7a0b\uff1a\u8f7b\u677e\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u8be6\u7ec6\u6307\u5bfc\u60a8\u5982\u4f55\u5728Rocky Linux 9\u7cfb\u7edf\u4e0a\u8bbe\u7f6eNFS\uff08\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff09\u6302\u8f7d\uff0c\u5b9e\u73b0\u9ad8\u6548\u4fbf\u6377\u7684\u6587\u4ef6\u5171\u4eab\u3002\u4ece\u5b89\u88c5\u5230\u914d\u7f6e\uff0c\u4e00\u6b65\u6b65\u6559\u60a8\u8f7b\u677e\u638c\u63e1NFS\u6302\u8f7d\u6280\u5de7\uff0c\u4f18\u5316\u60a8\u7684Linux\u6587\u4ef6\u7ba1\u7406\u4f53\u9a8c\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728rocky-linux-9\u4e0a\u8bbe\u7f6enfs\u6302\u8f7d\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-17T21:54:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T14:43:29+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/\",\"name\":\"Rocky Linux 9 NFS\u6302\u8f7d\u914d\u7f6e\u6559\u7a0b\uff1a\u8f7b\u677e\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-17T21:54:32+00:00\",\"dateModified\":\"2025-07-31T14:43:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"description\":\"\u672c\u6559\u7a0b\u8be6\u7ec6\u6307\u5bfc\u60a8\u5982\u4f55\u5728Rocky Linux 9\u7cfb\u7edf\u4e0a\u8bbe\u7f6eNFS\uff08\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff09\u6302\u8f7d\uff0c\u5b9e\u73b0\u9ad8\u6548\u4fbf\u6377\u7684\u6587\u4ef6\u5171\u4eab\u3002\u4ece\u5b89\u88c5\u5230\u914d\u7f6e\uff0c\u4e00\u6b65\u6b65\u6559\u60a8\u8f7b\u677e\u638c\u63e1NFS\u6302\u8f7d\u6280\u5de7\uff0c\u4f18\u5316\u60a8\u7684Linux\u6587\u4ef6\u7ba1\u7406\u4f53\u9a8c\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rocky Linux 9 NFS\u6302\u8f7d\u914d\u7f6e\u6559\u7a0b\uff1a\u8f7b\u677e\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Rocky Linux 9 NFS\u6302\u8f7d\u914d\u7f6e\u6559\u7a0b\uff1a\u8f7b\u677e\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab - Blog - Silicon Cloud","description":"\u672c\u6559\u7a0b\u8be6\u7ec6\u6307\u5bfc\u60a8\u5982\u4f55\u5728Rocky Linux 9\u7cfb\u7edf\u4e0a\u8bbe\u7f6eNFS\uff08\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff09\u6302\u8f7d\uff0c\u5b9e\u73b0\u9ad8\u6548\u4fbf\u6377\u7684\u6587\u4ef6\u5171\u4eab\u3002\u4ece\u5b89\u88c5\u5230\u914d\u7f6e\uff0c\u4e00\u6b65\u6b65\u6559\u60a8\u8f7b\u677e\u638c\u63e1NFS\u6302\u8f7d\u6280\u5de7\uff0c\u4f18\u5316\u60a8\u7684Linux\u6587\u4ef6\u7ba1\u7406\u4f53\u9a8c\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728rocky-linux-9\u4e0a\u8bbe\u7f6enfs\u6302\u8f7d\/","og_locale":"zh_CN","og_type":"article","og_title":"Rocky Linux 9 NFS\u6302\u8f7d\u914d\u7f6e\u6559\u7a0b\uff1a\u8f7b\u677e\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab","og_description":"\u672c\u6559\u7a0b\u8be6\u7ec6\u6307\u5bfc\u60a8\u5982\u4f55\u5728Rocky Linux 9\u7cfb\u7edf\u4e0a\u8bbe\u7f6eNFS\uff08\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff09\u6302\u8f7d\uff0c\u5b9e\u73b0\u9ad8\u6548\u4fbf\u6377\u7684\u6587\u4ef6\u5171\u4eab\u3002\u4ece\u5b89\u88c5\u5230\u914d\u7f6e\uff0c\u4e00\u6b65\u6b65\u6559\u60a8\u8f7b\u677e\u638c\u63e1NFS\u6302\u8f7d\u6280\u5de7\uff0c\u4f18\u5316\u60a8\u7684Linux\u6587\u4ef6\u7ba1\u7406\u4f53\u9a8c\u3002","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728rocky-linux-9\u4e0a\u8bbe\u7f6enfs\u6302\u8f7d\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-17T21:54:32+00:00","article_modified_time":"2025-07-31T14:43:29+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/","name":"Rocky Linux 9 NFS\u6302\u8f7d\u914d\u7f6e\u6559\u7a0b\uff1a\u8f7b\u677e\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-17T21:54:32+00:00","dateModified":"2025-07-31T14:43:29+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"description":"\u672c\u6559\u7a0b\u8be6\u7ec6\u6307\u5bfc\u60a8\u5982\u4f55\u5728Rocky Linux 9\u7cfb\u7edf\u4e0a\u8bbe\u7f6eNFS\uff08\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff09\u6302\u8f7d\uff0c\u5b9e\u73b0\u9ad8\u6548\u4fbf\u6377\u7684\u6587\u4ef6\u5171\u4eab\u3002\u4ece\u5b89\u88c5\u5230\u914d\u7f6e\uff0c\u4e00\u6b65\u6b65\u6559\u60a8\u8f7b\u677e\u638c\u63e1NFS\u6302\u8f7d\u6280\u5de7\uff0c\u4f18\u5316\u60a8\u7684Linux\u6587\u4ef6\u7ba1\u7406\u4f53\u9a8c\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Rocky Linux 9 NFS\u6302\u8f7d\u914d\u7f6e\u6559\u7a0b\uff1a\u8f7b\u677e\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8rocky-linux-9%e4%b8%8a%e8%ae%be%e7%bd%aenfs%e6%8c%82%e8%bd%bd\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/90","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=90"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":109555,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/90\/revisions\/109555"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}