{"id":127,"date":"2021-08-22T14:41:41","date_gmt":"2021-08-22T06:41:41","guid":{"rendered":"http:\/\/hcrain.com\/?p=127"},"modified":"2021-08-22T14:49:38","modified_gmt":"2021-08-22T06:49:38","slug":"config-nis-nfs-for-centos-6","status":"publish","type":"post","link":"https:\/\/hcrain.com\/index.php\/2021\/08\/22\/config-nis-nfs-for-centos-6\/","title":{"rendered":"\u4e3aCentOS 6\u914d\u7f6eNIS&#038;NFS \/ Config NIS&#038;NFS for CentOS 6"},"content":{"rendered":"\n<p>\u6700\u8fd1\u7ec4\u5185\u7684\u5de5\u4f5c\u7ad9\u6709\u65b0\u7684\u9700\u6c42\uff0c\u9700\u8981\u5c06\u4e00\u53f0\u5de5\u4f5c\u7ad9\u7684\u8bbe\u8ba1\u6587\u4ef6\u5b9e\u65f6\u540c\u6b65\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\uff0c\u4ee5\u65b9\u4fbf\u6700\u5927\u5316\u5730\u5229\u7528\u4e24\u53f0\u5de5\u4f5c\u7ad9\u7684\u5904\u7406\u5668\u8fdb\u884c\u4eff\u771f\u3002\u56e0\u6b64\u6211\u5c06\u5de5\u4f5c\u7ad9A\u4f5c\u4e3aNFS (Network File System) server, \u5de5\u4f5c\u7ad9B\u4f5c\u4e3aclient server\uff1b\u6b64\u5916\u6211\u4e5f\u4e3a\u5b83\u4eec\u914d\u7f6e\u4e86NIS (Network Infomation Service) \u529f\u80fd\uff0c\u540c\u6837\u4ee5A\u4f5c\u4e3aNIS server, B\u4f5c\u4e3aclient\uff0c\u4ee5\u65b9\u4fbf\u4e0d\u540c\u7528\u6237\u8bbf\u95ee\u5de5\u4f5c\u7ad9\u3002<\/p>\n\n\n\n<p>\u5728\u6b64\u8981\u611f\u8c22\u5b66\u9662\u7684\u5f20\u8001\u5e08\uff0c\u4e3a\u6b64\u914d\u7f6e\u8fc7\u7a0b\u63d0\u4f9b\u4e3b\u8981\u5e2e\u52a9\uff08\u6211\u53ea\u662f\u7b80\u5355\u5730\u505a\u6574\u7406\uff09<\/p>\n\n\n\n<div style=\"height:61px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>NFS\u9632\u706b\u5899\uff08\u5bf9A&amp;B\u64cd\u4f5c\uff09<\/h2>\n\n\n\n<p>\u5173\u95edCentOS 6\u7684\u9632\u706b\u5899\uff08\u7528\u4ee5\u4e0b\u4ee3\u7801\u63cf\u8ff0\u7684\u90e8\u5206\u4e3a\u952e\u5165terminal\u4e2d\u7684\u547d\u4ee4\u884c\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service iptables stop\nchkconfig iptables off<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-2.png\" alt=\"\" class=\"wp-image-142\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-2.png 674w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-2-300x73.png 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<h2>NFS\u9632\u706b\u5899\uff08\u5bf9A\u64cd\u4f5c\uff09<\/h2>\n\n\n\n<p>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/selinux\/config<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-4.png\" alt=\"\" class=\"wp-image-144\" width=\"600\" height=\"339\"\/><\/figure>\n\n\n\n<p>\uff08\u7528\u4ee5\u4e0b\u7ecf\u5178\u683c\u5f0f\u63cf\u8ff0\u7684\u90e8\u5206\u4e3a\u8f93\u5165\u5230\u6587\u672c\u91cc\u7684\u5185\u5bb9\uff09<\/p>\n\n\n<pre>SELINUX=disable<\/pre>\n\n\n<p>\u7136\u540e\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u4ee5\u5173\u95edselinux<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>setenforce 0<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-5.png\" alt=\"\" class=\"wp-image-145\" width=\"600\" height=\"245\"\/><\/figure>\n\n\n\n<h2>NFS\u4e3b\u673a\u5b89\u88c5\uff08\u5bf9A\u64cd\u4f5c\uff09<\/h2>\n\n\n\n<p>\u5b89\u88c5\u548c\u542f\u7528NFS\u76f8\u5173\u670d\u52a1\uff0c\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install nfs rpcbind\nservice rpcbind start\nservice nfs start\nchkconfig rpcbind on\nchkconfig nfs on<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-6.png\" alt=\"\" class=\"wp-image-146\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-6.png 550w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-6-300x221.png 300w\" sizes=\"(max-width: 550px) 85vw, 550px\" \/><\/figure>\n\n\n\n<p>\u5c06\u9700\u8981\u5171\u4eab\u7684\u6587\u4ef6\u8def\u5f84\u653e\u5728exports\u4e2d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/exports<\/code><\/pre>\n\n\n<pre>#If the target path is with read-write permission<br \/>[target path] [ip of B server]\/32(rw,sync,no_subtree_check,no_root_squash)<br \/><br \/>#If the target path is with read-only permission<br \/>[target path] [ip of B server]\/32(ro,sync.no_subtree_check.no_root_squash)<br \/><br \/>e.g. \/home\/user\/hcrain\/Project [ip of B server]\/32(rw,sync,no_subtree_check,no_root_squash)<\/pre>\n\n\n<p>\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u4ee5\u542f\u7528NFS\u8def\u5f84<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exportfs -r<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-7.png\" alt=\"\" class=\"wp-image-147\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-7.png 616w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-7-300x84.png 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<h2>NFS Client\u914d\u7f6e\uff08\u5bf9B\u64cd\u4f5c\uff09<\/h2>\n\n\n\n<p>\u67e5\u770b\u662f\u5426\u80fd\u4eceA\u5de5\u4f5c\u7ad9\u6302\u8f7d\u5df2\u8bbe\u5b9a\u7684\u8def\u5f84<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>showmount -e 10.20.119.26<\/code><\/pre>\n\n\n\n<p>\u4f1a\u51fa\u73b0\u4e24\u79cd\u7ed3\u679c\uff1a<\/p>\n\n\n\n<ol><li>\u6b63\u786e\u663e\u793a\u6240\u6709\u6302\u8f7d\u8def\u5f84\u2014\u2014\u53ef\u4ee5\u653e\u5fc3\u8fdb\u884c\u4e0b\u4e00\u6b65\u4e86<\/li><li>\u63d0\u793aclnt_create: RPC: Program not registered\u2014\u2014\u5c3d\u7ba1\u63d0\u793a\u6709\u95ee\u9898\uff0c\u4f46\u662f\u63a5\u4e0b\u6765\u7684\u6b65\u9aa4\u662f\u53ef\u4ee5\u6b63\u5e38\u8fdb\u884c\u7684\u3002\u5982\u679c\u9047\u5230\u5176\u4ed6\u95ee\u9898\uff0c\u53ef\u4ee5\u641c\u7d22\u5176\u4ed6\u7b54\u6848\uff08\u6211\u4e5f\u4e0d\u4f1a\u4e86&#8230;\uff09<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-8.png\" alt=\"\" class=\"wp-image-148\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-8.png 438w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-8-300x36.png 300w\" sizes=\"(max-width: 438px) 85vw, 438px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5c06NFS\u8def\u5f84\u6302\u8f7d\u5230\u76ee\u6807\u8def\u5f84\u4e0b\uff1a\uff08\u5148\u521b\u5efa\u597d[target path]\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount -t nfs &#91;ip of A server]:&#91;NFS path] &#91;target path]<\/code><\/pre>\n\n\n\n<p>\u5b8c\u6210\uff01\u4f60\u53ef\u4ee5\u6d4b\u8bd5\u4e0b\u8def\u5f84\u662f\u5426\u6302\u8f7d\u6210\u529f\uff0c\u4ee5\u53ca\u80fd\u5426\u5728[target path]\u4e0a\u770b\u5230\u6587\u4ef6\u3002<\/p>\n\n\n\n<h2>NIS\u4e3b\u673a\u5b89\u88c5\uff08\u5bf9A\u64cd\u4f5c\uff09<\/h2>\n\n\n\n<p>\u5b89\u88c5NIS\u6240\u9700\u7684\u5de5\u5177<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install ypserv ypbind yp-tools rpcbind<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-9.png\" alt=\"\" class=\"wp-image-149\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-9.png 530w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-9-300x195.png 300w\" sizes=\"(max-width: 530px) 85vw, 530px\" \/><\/figure>\n\n\n\n<p>\u8bbe\u7f6eNIS\u7f51\u7edc\u7684\u540d\u79f0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/sysconfig\/network<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n<pre>NISDOMAIN=[nisdomain]<\/pre>\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-10.png\" alt=\"\" class=\"wp-image-150\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-10.png 692w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-10-300x83.png 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<p>\u5bf9NIS\u57df\u540d\u6dfb\u52a0\u5f00\u673a\u81ea\u542f\u52a8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/rc.d\/rc.local<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n<pre>\/bin\/nisdomainname [nisdomain]<\/pre>\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-12.png\" alt=\"\" class=\"wp-image-152\" width=\"600\" height=\"244\"\/><\/figure>\n\n\n\n<p>\u8bbe\u7f6eypserv\u7684\u8bb8\u53ef<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/ypserv.conf<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n<pre>127.0.0.0:*:*.none<br>10.20.0.0\/255.255.128.0:*:*:none<br>192.168.0.0\/255.255.0.0:*:*:none<br>:*:*:deny<\/pre>\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-13.png\" alt=\"\" class=\"wp-image-153\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-13.png 530w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-13-300x216.png 300w\" sizes=\"(max-width: 530px) 85vw, 530px\" \/><\/figure>\n\n\n\n<p>\u5728A\u5de5\u4f5c\u7ad9\u4e2d\u6dfb\u52a0B\u7684ip\u53ca\u4e3b\u673a\u540d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/hosts<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n<pre>[ip of B] [hostname of B]<\/pre>\n\n\n<p>\u542f\u52a8NIS\u670d\u52a1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service rpcbind start\nservice yppasswdd start\nservice ypserv start<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-14.png\" alt=\"\" class=\"wp-image-154\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-14.png 690w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-14-300x82.png 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<p><span class=\"has-inline-color has-bright-red-color\"><strong>**<\/strong><\/span>\u5982\u679cNIS\u914d\u7f6e\u6587\u4ef6\u505a\u66f4\u6539\uff0c\u5219\u9700\u91cd\u65b0\u6267\u884c<span class=\"has-inline-color has-bright-red-color\"><strong>\u4ee5\u4e0b<\/strong><\/span>\u64cd\u4f5c<span class=\"has-inline-color has-bright-red-color\"><strong>**<\/strong><\/span><\/p>\n\n\n\n<p>\u521d\u59cb\u5316NIS\u6570\u636e\u5e93<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/lib64\/yp\/ypinit -m<\/code><\/pre>\n\n\n\n<p>\u5728\u952e\u76d8\u4e0a\u952e\u5165 <strong>Ctrl+D<\/strong>\uff0c\u7136\u540e\u8f93\u5165 <strong>y<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-15.png\" alt=\"\" class=\"wp-image-155\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-15.png 534w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-15-300x108.png 300w\" sizes=\"(max-width: 534px) 85vw, 534px\" \/><\/figure>\n\n\n\n<p>\u5f53\u8d26\u6237\u4fe1\u606f\u53d1\u751f\u53d8\u52a8\u65f6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/yp\nmake<\/code><\/pre>\n\n\n\n<p>\u6216\u8005\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/yp\nmake -C \/var\/yp<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-16.png\" alt=\"\" class=\"wp-image-156\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-16.png 520w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-16-300x95.png 300w\" sizes=\"(max-width: 520px) 85vw, 520px\" \/><\/figure>\n\n\n\n<p>\u5728\u91cd\u914d\u7f6e\u540e\uff0c\u9700\u91cd\u65b0\u542f\u52a8NIS\u670d\u52a1\uff0c\u5e76\u5f00\u542f\u670d\u52a1\u7684\u5f00\u673a\u81ea\u542f\u52a8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service rpcbind start\nservice yppasswdd start\nservice ypserv start\nchkconfig rpcbind on\nchkconfig yppasswdd on\nchkconfig ypserv on<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-17.png\" alt=\"\" class=\"wp-image-157\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-17.png 521w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-17-300x134.png 300w\" sizes=\"(max-width: 521px) 85vw, 521px\" \/><\/figure>\n\n\n\n<p><strong><span class=\"has-inline-color has-bright-red-color\">**<\/span><\/strong>\u5982\u679cNIS\u914d\u7f6e\u6587\u4ef6\u505a\u66f4\u6539\uff0c\u5219\u9700\u91cd\u65b0\u6267\u884c<span class=\"has-inline-color has-bright-red-color\"><strong>\u4ee5\u4e0a<\/strong><\/span>\u64cd\u4f5c<strong><span class=\"has-inline-color has-bright-red-color\">**<\/span><\/strong><\/p>\n\n\n\n<h2>NIS Client \uff08\u5bf9B\u64cd\u4f5c\uff09<\/h2>\n\n\n\n<p>\u5b89\u88c5NIS\u670d\u52a1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install ypbind yp-tools rpcbind<\/code><\/pre>\n\n\n\n<p>\u5728network\u4e2d\u6dfb\u52a0NIS\u57df\u540d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/sysconfig\/network<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a\uff08[nisdomain]\u5373\u662f\u4e0a\u4e00\u90e8\u5206\u7684[nisdomain]\uff09<\/p>\n\n\n<pre>NISDOMAIN=[nisdomain]<\/pre>\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-18.png\" alt=\"\" class=\"wp-image-158\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-18.png 536w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-18-300x90.png 300w\" sizes=\"(max-width: 536px) 85vw, 536px\" \/><\/figure>\n\n\n\n<p>\u5bf9NIS\u57df\u540d\u6dfb\u52a0\u5f00\u673a\u81ea\u542f\u52a8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/rc.d\/rc.local<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n<pre>\/bin\/nisdomainname [nisdomain]<\/pre>\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-19.png\" alt=\"\" class=\"wp-image-159\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-19.png 624w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-19-300x121.png 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<p>\u5728B\u5de5\u4f5c\u7ad9\u4e2d\u6dfb\u52a0A\u7684ip\u53ca\u4e3b\u673a\u540d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/hosts<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n<pre>[ip of A] [hostname of A]<\/pre>\n\n\n<p>\u5229\u7528UI\u754c\u9762\u914d\u7f6eAuthentication Configuration<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>authconfig-tui<\/code><\/pre>\n\n\n\n<p>\u9009\u62e9Use NIS\u540e\uff0c\u9009\u62e9NEXT<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-20.png\" alt=\"\" class=\"wp-image-160\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-20.png 506w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-20-300x211.png 300w\" sizes=\"(max-width: 506px) 85vw, 506px\" \/><\/figure>\n\n\n\n<p>\u5728\u5bf9\u8bdd\u6846\u4e2d\u8f93\u5165A\u5de5\u4f5c\u7ad9\u7684[nisdonaim]\u53ca\u5176ip\uff0c\u6700\u540e\u9009\u62e9Ok<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"http:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-21.png\" alt=\"\" class=\"wp-image-161\" width=\"600\" srcset=\"https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-21.png 612w, https:\/\/hcrain.com\/wp-content\/uploads\/2021\/08\/image-21-300x208.png 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<p>\u5b8c\u6210\uff01\u4f60\u53ef\u4ee5\u8fd0\u884cyptest\u6765\u6d4b\u8bd5NIS\u662f\u5426\u914d\u7f6e\u6210\u529f\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2>\u5e38\u89c1\u95ee\u9898<\/h2>\n\n\n\n<p>1. can&#8217;t communicate with ypbind<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service ypbind start\nchkconfig ypbind on<\/code><\/pre>\n\n\n\n<p>Reference: <a href=\"https:\/\/blog.csdn.net\/qq_38663663\/article\/details\/107206322\">https:\/\/blog.csdn.net\/qq_38663663\/article\/details\/107206322<\/a><\/p>\n\n\n\n<p>2. Timeout in locking authority file .Xauthority<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>setenforce 0<\/code><\/pre>\n\n\n\n<p>Reference: <a href=\"https:\/\/blog.csdn.net\/qq_40809549\/article\/details\/83268416\">https:\/\/blog.csdn.net\/qq_40809549\/article\/details\/83268416<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u7ec4\u5185\u7684\u5de5\u4f5c\u7ad9\u6709\u65b0\u7684\u9700\u6c42\uff0c\u9700\u8981\u5c06\u4e00\u53f0\u5de5\u4f5c\u7ad9\u7684\u8bbe\u8ba1\u6587\u4ef6\u5b9e\u65f6\u540c\u6b65\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\uff0c\u4ee5\u65b9\u4fbf\u6700\u5927\u5316\u5730\u5229\u7528\u4e24\u53f0\u5de5\u4f5c\u7ad9\u7684 &hellip; <a href=\"https:\/\/hcrain.com\/index.php\/2021\/08\/22\/config-nis-nfs-for-centos-6\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u4e3aCentOS 6\u914d\u7f6eNIS&#038;NFS \/ Config NIS&#038;NFS for CentOS 6\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[9,10,11],"_links":{"self":[{"href":"https:\/\/hcrain.com\/index.php\/wp-json\/wp\/v2\/posts\/127"}],"collection":[{"href":"https:\/\/hcrain.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hcrain.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hcrain.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hcrain.com\/index.php\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":16,"href":"https:\/\/hcrain.com\/index.php\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":167,"href":"https:\/\/hcrain.com\/index.php\/wp-json\/wp\/v2\/posts\/127\/revisions\/167"}],"wp:attachment":[{"href":"https:\/\/hcrain.com\/index.php\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hcrain.com\/index.php\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hcrain.com\/index.php\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}