NFS的配置与应用

 NFS主要用于不同操作系统之间的文件共享

 


  1. [root@localhost ~]# yum groupinstall nfs-file-server -y 
  2. [root@localhost nfs]# cat /etc/exports  
  3. /nfs   192.168.122.0/24(rw,sync) 
  4.                         (ro,sync) 
  5.               *.example.com(rw,sync) 
  6. 1 /etc/init.d/nfs restart 
  7.  
  8. rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused) 
  9. 解决办法: 
  10.  
  11. 1 /etc/init.d/rpcbind restart 
  12.  
  13. 2 #/etc/init.d/rpcbind start 
  14.  
  15.  
  16. [cc@bogon ~]$ showmount -e 192.168.122.44 
  17. clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host) 
  18. 关掉server的火墙 
  19. chmod 777 /nfs 
  20. [cc@bogon ~]$ showmount -e 192.168.122.44 
  21. Export list for 192.168.122.44: 
  22. /nfs 192.168.122.0/24 
  23. mount -t nfs 192.168.122.44:/nfs   /mnt 

可以设置开机自动挂载:vim /etc/fstab

192.168.122.44:/nfs    /mnt     nfs    defautls   0 0



本文转自 369蓝宝 51CTO博客,原文链接:http://blog.51cto.com/3739387/1158455,如需转载请自行联系原作者

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值