svc: failed to register lockdv1 RPC service (errno 111)解决和nfs配置

来源:互联网 发布:unity3d click 编辑:程序博客网 时间:2024/06/05 08:20

svc: failed to register lockdv1 RPC service (errno 111).

挂载时,用


mount -t nfs 192.168.1.105:/ /mnt/nfs


时出现


svc: failed to register lockdv1 RPC service (errno 111)

改为


mount -t nfs -o nolock 192.168.1.105:/ /mnt/nfs


就行了。

全部配置步骤:

1、进入配置文件,输下指令

#vi /etc/exports

2、进入后,设置为下面,设置好后保存退出

/ 文件名 192.168.1.*(rw,sync,no_root_squash) (有些是192.168.0.*)

3、启动服务

#service nfs restart

4、检查是否连通

#ping xxx.xxx.x.xxx (xxx.xxx.x.xxx为连接对象的IP地址)

5、若连通,到超级终端或dnw输入

#mount -t nfs -o nolock xxx.xxx.x.xxx:/共享文件名 /本地文件名

6、应该可以正常工作了

0 0