{"id":677,"date":"2025-12-09T17:03:03","date_gmt":"2025-12-09T09:03:03","guid":{"rendered":"https:\/\/www.52runoob.com\/?p=677"},"modified":"2025-12-09T17:03:03","modified_gmt":"2025-12-09T09:03:03","slug":"ubuntu-22-04%e5%ae%89%e8%a3%85nfs%e7%9a%84%e9%97%ae%e9%a2%98%e5%b0%8f%e7%bb%93","status":"publish","type":"post","link":"https:\/\/www.52runoob.com\/index.php\/2025\/12\/09\/ubuntu-22-04%e5%ae%89%e8%a3%85nfs%e7%9a%84%e9%97%ae%e9%a2%98%e5%b0%8f%e7%bb%93\/","title":{"rendered":"ubuntu\u00a022.04\u5b89\u88c5NFS\u7684\u95ee\u9898\u5c0f\u7ed3"},"content":{"rendered":"\n<p>\u4e0b\u9762\u7ed9\u4f60\u6574\u7406\u4e00\u4efd <strong>\u300aUbuntu 22.04 \u5b89\u88c5 NFS \u7684\u95ee\u9898\u5c0f\u7ed3\uff08\u8d85\u5b9e\u7528\u7248\uff09\u300b<\/strong>\uff0c\u6db5\u76d6\u5b89\u88c5\u3001\u914d\u7f6e\u3001\u5e38\u89c1\u9519\u8bef\u4e0e\u6392\u67e5\u65b9\u6cd5\uff0c\u4e00\u6587\u638c\u63e1 NFS \u5728 Ubuntu \u4e0a\u7684\u5e38\u89c1\u5751\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Ubuntu 22.04 \u5b89\u88c5 NFS \u7684\u95ee\u9898\u5c0f\u7ed3\uff08\u5b9e\u6218\u6392\u9519\u5408\u96c6\uff09<\/strong><\/h1>\n\n\n\n<p>NFS\uff08Network File System\uff09\u662f Linux \u5e38\u7528\u7684\u7f51\u7edc\u6587\u4ef6\u5171\u4eab\u670d\u52a1\uff0c\u4f46\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e\u65f6\u5bb9\u6613\u8e29\u5751\u3002\u4e0b\u9762\u603b\u7ed3\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6cd5\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u4e00\u3001NFS \u670d\u52a1\u5b89\u88c5\u5e38\u89c1\u95ee\u9898<\/strong><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u95ee\u9898 1\uff1a\u627e\u4e0d\u5230 nfs-kernel-server \u5305<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u9519\u8bef\u8868\u73b0\uff1a<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nUnable to locate package nfs-kernel-server\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>\u539f\u56e0\uff1a<\/strong><\/h3>\n\n\n\n<p>\u4f60\u7684 apt \u6e90\u672a\u66f4\u65b0\u6216\u4f7f\u7528\u7684\u6e90\u4e0d\u5b8c\u6574\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89e3\u51b3\uff1a<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt update\nsudo apt install nfs-kernel-server\n\n<\/pre><\/div>\n\n\n<p>\u5982\u679c\u4ecd\u65e7\u627e\u4e0d\u5230\uff0c\u68c0\u67e5 <code>\/etc\/apt\/sources.list<\/code> \u662f\u5426\u7f3a\u5c11 main\/universe \u7ec4\u4ef6\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u95ee\u9898 2\uff1aNFS \u670d\u52a1\u65e0\u6cd5\u542f\u52a8 \/ \u72b6\u6001 failed<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u67e5\u770b\u72b6\u6001\uff1a<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl status nfs-server\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5e38\u89c1\u9519\u8bef\u539f\u56e0\uff1a<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>\/etc\/exports<\/code> \u914d\u7f6e\u8bed\u6cd5\u9519\u8bef<\/li>\n\n\n\n<li>\u5171\u4eab\u76ee\u5f55\u4e0d\u5b58\u5728<\/li>\n\n\n\n<li>\u6743\u9650\u6216\u6240\u6709\u8005\u4e0d\u5bf9<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89e3\u51b3\uff1a<\/strong><\/h3>\n\n\n\n<p>\u68c0\u67e5 <code>\/etc\/exports<\/code> \u662f\u5426\u6b63\u786e\uff1a<\/p>\n\n\n\n<p>\u793a\u4f8b\u914d\u7f6e\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/data\/nfs 192.168.1.0\/24(rw,sync,no_subtree_check,no_root_squash)\n\n<\/pre><\/div>\n\n\n<p>\u5fc5\u987b\u786e\u4fdd\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8def\u5f84\u5b58\u5728\uff1a<code>sudo mkdir -p \/data\/nfs<\/code><\/li>\n\n\n\n<li>\u6743\u9650\u5408\u9002\uff1a<code>sudo chown -R nobody:nogroup \/data\/nfs<\/code>\uff08\u6216\u81ea\u5b9a\u4e49\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u4fee\u6539\u540e\u6267\u884c\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo exportfs -rav\nsudo systemctl restart nfs-server\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u5ba2\u6237\u7aef\u6302\u8f7d\u5e38\u89c1\u9519\u8bef<\/strong><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u95ee\u9898 3\uff1a\u6302\u8f7d\u65f6\u62a5\u9519 <code>mount.nfs: access denied by server<\/code><\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u539f\u56e0\uff1a<\/strong><\/h3>\n\n\n\n<p>\u670d\u52a1\u5668 <code>\/etc\/exports<\/code> \u6ca1\u6709\u6388\u6743\u672c\u5ba2\u6237\u7aef IP\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u6392\u67e5\uff1a<\/strong><\/h3>\n\n\n\n<p>\u670d\u52a1\u5668\u6267\u884c\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo exportfs -v\n\n<\/pre><\/div>\n\n\n<p>\u67e5\u770b\u662f\u5426\u5305\u542b\u5ba2\u6237\u7aef IP\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89e3\u51b3\uff1a<\/strong><\/h3>\n\n\n\n<p>\u52a0\u5165\u5ba2\u6237\u7aef\u6388\u6743\uff0c\u4f8b\u5982\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/data\/nfs 192.168.1.100(rw,sync,no_subtree_check)\n\n<\/pre><\/div>\n\n\n<p>\u7136\u540e\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo exportfs -rav\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u95ee\u9898 4\uff1a\u6302\u8f7d\u65f6\u62a5\u9519 <code>mount.nfs: connection timed out<\/code><\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u539f\u56e0\uff1a<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9632\u706b\u5899\u963b\u6321<\/li>\n\n\n\n<li>NFS \u670d\u52a1\u6ca1\u542f\u52a8<\/li>\n\n\n\n<li>\u7f51\u7edc\u4e0d\u901a<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u6392\u67e5\uff1a<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u68c0\u67e5\u670d\u52a1<\/strong><\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl status nfs-server\n\n<\/pre><\/div>\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u68c0\u67e5\u9632\u706b\u5899\uff08UFW\uff09<\/strong><\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo ufw status\nsudo ufw allow from 192.168.1.0\/24 to any port nfs\n\n<\/pre><\/div>\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>\u6d4b\u8bd5\u7f51\u7edc<\/strong><\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nping &amp;lt;NFS\u670d\u52a1\u5668IP&gt;\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u95ee\u9898 5\uff1a\u6302\u8f7d\u62a5\u9519 <code>wrong fs type<\/code><\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u539f\u56e0\uff1a<\/strong><\/h3>\n\n\n\n<p>\u4f7f\u7528\u4e86 NFS v4\uff0c\u4f46\u670d\u52a1\u5668\u6ca1\u6709\u914d\u7f6e v4 \u6839\u5bfc\u51fa\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89e3\u51b3\uff1a<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u670d\u52a1\u5668\u7aef\u6dfb\u52a0\uff1a<\/strong><\/h3>\n\n\n\n<p>\u7f16\u8f91 <code>\/etc\/exports<\/code>\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/data\/nfs *(rw,fsid=0,no_subtree_check)\n\n<\/pre><\/div>\n\n\n<p>\u6302\u8f7d\u547d\u4ee4\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo mount -t nfs4 &amp;lt;server_ip&gt;:\/ \/mnt\n\n<\/pre><\/div>\n\n\n<p>\u6216\u6307\u5b9a NFSv3\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo mount -t nfs -o vers=3 &amp;lt;server_ip&gt;:\/data\/nfs \/mnt\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u4e09\u3001\u6587\u4ef6\u6743\u9650\u4e0e\u6240\u6709\u8005\u95ee\u9898<\/strong><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u95ee\u9898 6\uff1a\u5ba2\u6237\u7aef\u521b\u5efa\u7684\u6587\u4ef6\u6743\u9650\u5f02\u5e38\uff08nobody:nogroup\uff09<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u539f\u56e0\uff1a<\/strong><\/h3>\n\n\n\n<p>\u542f\u7528\u4e86 root_squash\uff0cNFS \u9ed8\u8ba4\u5c06 root \u6620\u5c04\u4e3a nobody\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/h3>\n\n\n\n<p>\u82e5\u4f60\u5e0c\u671b\u5ba2\u6237\u7aef root \u4e5f\u6709\u771f\u5b9e\u6743\u9650\uff1a<\/p>\n\n\n\n<p>\u4fee\u6539 <code>\/etc\/exports<\/code>\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/data\/nfs *(rw,no_root_squash)\n\n<\/pre><\/div>\n\n\n<p>\u5982\u679c\u8981\u5b89\u5168\u6a21\u5f0f\uff08\u63a8\u8350\uff09\uff0c\u4fdd\u6301\u9ed8\u8ba4 root_squash\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u95ee\u9898 7\uff1a\u5ba2\u6237\u7aef\u8bfb\u5199\u6b63\u5e38\uff0c\u4f46\u670d\u52a1\u5668\u672c\u5730\u6743\u9650\u4e0d\u4e00\u81f4<\/strong><\/h2>\n\n\n\n<p>\u5178\u578b\u8868\u73b0\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u670d\u52a1\u5668\u770b\u5230 UID\/GID \u4e0d\u4e00\u81f4<\/li>\n\n\n\n<li>\u5bfc\u81f4\u672c\u5730 chmod\u3001chown \u540e\u5ba2\u6237\u7aef\u4e0d\u53ef\u7528<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u539f\u56e0\uff1a<\/strong><\/h3>\n\n\n\n<p>NFS \u57fa\u4e8e UID\/GID\uff0c\u4e0d\u57fa\u4e8e\u7528\u6237\u540d<br>\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef <strong>\u5fc5\u987b\u7edf\u4e00\u7528\u6237 ID \u548c\u7ec4 ID<\/strong>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89e3\u51b3\uff1a<\/strong><\/h3>\n\n\n\n<p>\u53cc\u65b9\u521b\u5efa\u4e00\u81f4 UID \u7684\u7528\u6237\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo useradd -u 1001 username\nsudo groupadd -g 1001 usergroup\n\n<\/pre><\/div>\n\n\n<p>\u6216\u4f7f\u7528 LDAP\u3001FreeIPA \u505a\u7edf\u4e00\u8d26\u53f7\u7ba1\u7406\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u56db\u3001NFS \u6027\u80fd\u95ee\u9898\u5e38\u89c1\u60c5\u51b5<\/strong><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u95ee\u9898 8\uff1aNFS \u8bbf\u95ee\u6781\u6162 \/ \u5361\u987f<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u539f\u56e0\uff1a<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u672a\u5173\u95ed subtree_check<\/li>\n\n\n\n<li>sync \u6a21\u5f0f\u8fc7\u6162<\/li>\n\n\n\n<li>DNS \u89e3\u6790\u5bfc\u81f4\u5ef6\u8fdf<\/li>\n\n\n\n<li>NFSv4 \u9501\u673a\u5236\u5f71\u54cd\u6027\u80fd<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4f18\u5316\u914d\u7f6e\uff1a<\/strong><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nrw,sync,no_subtree_check\n\n<\/pre><\/div>\n\n\n<p>\u5173\u95ed reverse DNS\uff1a<br>\u7f16\u8f91 <code>\/etc\/hosts<\/code> \u6dfb\u52a0\u5ba2\u6237\u7aef IP \u6620\u5c04\u3002<\/p>\n\n\n\n<p>\u6216\u8005\u6539\u7528 async\uff08\u4f46\u5b58\u5728\u4e22\u6570\u636e\u98ce\u9669\uff09\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nrw,async\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u95ee\u9898 9\uff1aNFS \u6302\u8f7d\u540e\u9891\u7e41\u6389\u7ebf<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u539f\u56e0\uff1a<\/strong><\/h3>\n\n\n\n<p>NAT\u3001\u865a\u62df\u5316\u7f51\u7edc\u3001\u6216 NFSv4 session timeout<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89e3\u51b3\uff1a<\/strong><\/h3>\n\n\n\n<p>\u5ba2\u6237\u7aef\u6302\u8f7d\u52a0\u53c2\u6570\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n-o timeo=600,rsize=1048576,wsize=1048576\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u4e94\u3001NFS \u914d\u7f6e\u4fee\u6539\u4e0d\u751f\u6548<\/strong><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u95ee\u9898 10\uff1a\/etc\/exports \u4fee\u6539\u540e\u65e0\u6548<\/strong><\/h2>\n\n\n\n<p>\u539f\u56e0\uff1a\u5fd8\u8bb0\u5237\u65b0\u3002<\/p>\n\n\n\n<p>\u89e3\u51b3\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo exportfs -rav\nsudo systemctl restart nfs-server\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u516d\u3001\u5b8c\u6574\u5de5\u4f5c\u6d41\u7a0b\u6700\u4f73\u793a\u4f8b<\/strong><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. \u5b89\u88c5\u670d\u52a1\u7aef<\/strong><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt update\nsudo apt install nfs-kernel-server\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>2. \u521b\u5efa\u5171\u4eab\u76ee\u5f55<\/strong><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo mkdir -p \/data\/nfs\nsudo chown -R nobody:nogroup \/data\/nfs\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>3. \u7f16\u8f91 exports<\/strong><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/data\/nfs 192.168.1.0\/24(rw,sync,no_subtree_check)\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>4. \u5237\u65b0\u5e76\u542f\u52a8<\/strong><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo exportfs -rav\nsudo systemctl restart nfs-server\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>5. \u5ba2\u6237\u7aef\u6302\u8f7d<\/strong><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt install nfs-common\nsudo mount -t nfs &amp;lt;server_ip&gt;:\/data\/nfs \/mnt\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u4e03\u3001\u9002\u5408\u6536\u85cf\u7684 NFS \u95ee\u9898\u5feb\u901f\u5b9a\u4f4d\u8868<\/strong><\/h1>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u73b0\u8c61<\/th><th>\u4e3b\u8981\u539f\u56e0<\/th><th>\u89e3\u51b3\u65b9\u5f0f<\/th><\/tr><\/thead><tbody><tr><td>access denied<\/td><td>\u672a\u6388\u6743 IP<\/td><td>\u68c0\u67e5 <code>\/etc\/exports<\/code><\/td><\/tr><tr><td>connection timed out<\/td><td>\u670d\u52a1\u672a\u542f\u52a8\u6216\u9632\u706b\u5899\u963b\u6321<\/td><td>\u5f00\u653e\u7aef\u53e3\u4e0e\u670d\u52a1<\/td><\/tr><tr><td>\u6743\u9650\u663e\u793a nobody<\/td><td>root_squash \u751f\u6548<\/td><td>\u6539 no_root_squash \u6216\u7edf\u4e00 UID<\/td><\/tr><tr><td>\u8d85\u7ea7\u6162<\/td><td>subtree_check \/ DNS\u89e3\u6790<\/td><td>\u8c03\u4f18\u6216\u5173\u95ed subtree_check<\/td><\/tr><tr><td>\u65e0\u6cd5\u6302\u8f7d<\/td><td>\u4f7f\u7528 NFSv4\uff0c\u4f46\u65e0 fsid=0<\/td><td>\u8c03\u6574\u5bfc\u51fa\u914d\u7f6e<\/td><\/tr><tr><td>\u91cd\u542f\u540e\u6302\u8f7d\u6d88\u5931<\/td><td>\u672a\u5199\u5165 fstab<\/td><td>\u6dfb\u52a0\u5230 <code>\/etc\/fstab<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u7ed9\u4f60\u6574\u7406\u4e00\u4efd \u300aUbuntu 22.04 \u5b89\u88c5 NFS \u7684\u95ee\u9898\u5c0f\u7ed3\uff08\u8d85\u5b9e\u7528\u7248&#8230; <a class=\"more-link\" href=\"https:\/\/www.52runoob.com\/index.php\/2025\/12\/09\/ubuntu-22-04%e5%ae%89%e8%a3%85nfs%e7%9a%84%e9%97%ae%e9%a2%98%e5%b0%8f%e7%bb%93\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-677","post","type-post","status-publish","format-standard","hentry","category-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/comments?post=677"}],"version-history":[{"count":1,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"predecessor-version":[{"id":678,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/677\/revisions\/678"}],"wp:attachment":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/tags?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}