Remote Share with NFS on Linux
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-24
1.login to server1 as root 2. Check whether the process of portmap works with this command: # ps -aux|grep portmap it should showed us the detail information about the process of portmap, otherwise we must start this service by manual # /etc/rc.d/init.d/portmap start 3. Add these info as below into this file /etc/exports /yofee server2(rw,root_squash) server3(rw,root_squash) /yofee is 4. Start or restart the process of nfs # / etc/rc.d/init.d/nfs start 5. # ln -s /etc/rc.d/init.d/portmap /etc/rc.d/rc5.d/S18portmap # ln -s /etc/rc.d/init.d/nfs /etc/rc.d/rc5.d/S28nfs 1. Login on server2 or server3 as root. Start the service of portmap # 2.create a mountsite for remoteserver directory (a Local directory) 3. Add these information as below into this file /etc/fstab server1:/yofee 4. Mount the remoteServer directory. 5.list the local mountsite directory and confirm whether it is the same as remote directory # ls /s1yofee Now, we can see the share directory from server1 on the local site. BTW:pay attention to the order of service start. exportfs [-aruv] -a :mount all of the contents about /etc/exports -r :mount /etc/exports again -u :umount the directory -v :print to screen when export it |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: 工作年终总结下一篇: 华为内部LINUX学习资料(PDF格式)
关于Remote Share with NFS on Linux的所有评论