linux上NFS客户端登陆错误

来源:互联网 发布:怎样加入淘宝客推广 编辑:程序博客网 时间:2024/06/05 09:57

NFS (network file system)
服务端需要安装:nfs-utils 和 rpcbind 两个包
其中rpcbind用来支持客户端与服务端的通信,CentOS5上称为portmap。

客户端安装nfs-utils。
试验中遇到错误:

从客户端访问服务器报错,提示:clnt_create: RPC: Program not registered
解决办法:在服务器上先停止rpcbind,
/etc/init.d/rpcbind stop
然后在停止nfs
/etc/init.d/nfs stop
最后在重启rpcbind和nfs,一定要按顺序启动和停止
/etc/init.d/rpcbind start
/etc/init.d/nfs start
做完这个动作之后,访问成功。

[root@Localhuang ~]# showmount -e 192.168.1.118Export list for 192.168.1.118:/usr/local/src 192.168.1.119
[root@Localhuang ~]#  mount -t nfs -o nolock,nfsvers=3 192.168.1.118:/usr/local/src/ /mnt[root@Localhuang ~]# dfFilesystem           1K-blocks    Used Available Use% Mounted on/dev/sda3             18244476 3982640  13328412  24% /tmpfs                   502172       0    502172   0% /dev/shm/dev/sda1               194241   26145    157856  15% /boot192.168.1.118:/usr/local/src/                      18344832 6753792  10652544  39% /mnt

参见:http://sxct168.blog.51cto.com/824373/1654069

0 0
原创粉丝点击