{"id":388,"date":"2012-03-07T22:19:35","date_gmt":"2012-03-07T13:19:35","guid":{"rendered":"http:\/\/153.126.194.20\/?p=388"},"modified":"2024-11-17T15:23:01","modified_gmt":"2024-11-17T06:23:01","slug":"ubuntu-nfs","status":"publish","type":"post","link":"https:\/\/funaori.com\/ja\/2012\/03\/07\/ubuntu-nfs\/","title":{"rendered":"ubuntu\/NFS"},"content":{"rendered":"<h2 id=\"content_1_0\">NFS\u306e\u8a2d\u5b9a  <a class=\"anchor_super\" id=\"nf1179c0\" href=\"http:\/\/192.168.1.4\/www_old\/linux\/index.php?ubuntu%2FNFS#nf1179c0\" title=\"nf1179c0\">\u2020<\/a><\/h2>\n<p><a href=\"http:\/\/www.a-yu.com\/opt\/nfs01.html\" rel=\"nofollow\">\u53c2\u8003\u30da\u30fc\u30b8<\/a><br \/>\n<a href=\"http:\/\/www.mediaweb.biz\/database\/backup\/rsync.html\" rel=\"nofollow\">\u53c2\u8003\u30da\u30fc\u30b8(rsync)<\/a><\/p>\n<div class=\"jumpmenu\"><a href=\"#navigator\">\u2191<\/a><\/div>\n<h3 id=\"content_1_1\">Server\u5074  <a class=\"anchor_super\" id=\"k93de48e\" href=\"http:\/\/192.168.1.4\/www_old\/linux\/index.php?ubuntu%2FNFS#k93de48e\" title=\"k93de48e\">\u2020<\/a><\/h3>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n<pre>$ sudo apt-get install nfs-kernel-server nfs-common<\/pre>\n<\/li>\n<li>NFS\u30a2\u30af\u30bb\u30b9\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u8a2d\u5b9a\n<ul class=\"list2\" style=\"padding-left:16px;margin-left:16px\">\n<li>\/home\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u53c2\u7167\u53ef\u80fd\u306b\u3059\u308b\uff0e<\/li>\n<li>root\u306e\u30a2\u30af\u30bb\u30b9\u306froot\u3068\u3057\u3066\u632f\u308b\u821e\u3048\u308b\u69d8\u306b\u3059\u308b\uff0e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\/etc\/exports\u306e\u7de8\u96c6\uff0c\u62ec\u5f27\u306e\u524d\u306b\u30b9\u30da\u30fc\u30b9\u3092\u542b\u307e\u306a\u3044<\/p>\n<pre>\/home   192.168.1.2(ro,no_root_squash)\r\n                   ^<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>RPC\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\uff0e\n<ul class=\"list2\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u5b9a\u306ePC\u304b\u3089\u306eRPC\u30a2\u30af\u30bb\u30b9\u3092\u5168\u3066\u8a31\u53ef\uff0e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\/etc\/hosts.allow\u306e\u7de8\u96c6<\/p>\n<pre>ALL : 192.168.1.2\/255.255.255.255 \u2190 \u8ffd\u52a0<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u8a2d\u5b9a\u306e\u53cd\u6620<\/li>\n<\/ul>\n<pre># exportfs -a\r\n# \/etc\/init.d\/nfs-kernel-server restart<\/pre>\n<div class=\"jumpmenu\"><a href=\"#navigator\">\u2191<\/a><\/div>\n<h3 id=\"content_1_2\">NFS Client\u5074  <a class=\"anchor_super\" id=\"ne41acde\" href=\"http:\/\/192.168.1.4\/www_old\/linux\/index.php?ubuntu%2FNFS#ne41acde\" title=\"ne41acde\">\u2020<\/a><\/h3>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u30de\u30a6\u30f3\u30c8\u5148\u3092\u4f5c\u6210<\/li>\n<\/ul>\n<pre># mkdir \/mnt\/old-home<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u30de\u30a6\u30f3\u30c8\u8a2d\u5b9a<\/li>\n<\/ul>\n<p>\/etc\/fstab\u3092\u7de8\u96c6<\/p>\n<pre>192.168.1.1:\/home       \/mnt\/old-home           nfs     user,noauto     0 0\r\n\u2191\u3053\u306e\u884c\u3092\u8ffd\u52a0<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u30de\u30a6\u30f3\u30c8\u306e\u5b9f\u884c<\/li>\n","protected":false},"excerpt":{"rendered":"<p>NFS\u306e\u8a2d\u5b9a \u2020 \u53c2\u8003\u30da\u30fc\u30b8 \u53c2\u8003\u30da\u30fc\u30b8(rsync) \u2191 Server\u5074 \u2020 \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb $ sudo apt-get install nfs-kernel-server nfs-common NFS\u30a2\u30af&hellip; <a class=\"more-link\" href=\"https:\/\/funaori.com\/ja\/2012\/03\/07\/ubuntu-nfs\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">ubuntu\/NFS<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"388","footnotes":""},"categories":[14],"tags":[],"class_list":["post-388","post","type-post","status-publish","format-standard","hentry","category-ubuntu","ja","entry"],"_links":{"self":[{"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/comments?post=388"}],"version-history":[{"count":1,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/posts\/388\/revisions"}],"predecessor-version":[{"id":389,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/posts\/388\/revisions\/389"}],"wp:attachment":[{"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/media?parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/categories?post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/tags?post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}