mount.nfs:ubuntu 14.04.1 LTS上的连接超时

时间:2017-08-29 11:40:30

标签: ubuntu-14.04 nfs ubuntu-server nfsclient

我第一次尝试创建一个nfs服务器。在尝试安装到服务器时,我收到错误“mount.nfs:Connection timed out”。我的服务器版本是ubuntu 14.04.5 LTS,而我的客户端是ubuntu 14.04.1 LTS。以下是我执行的步骤。

在服务器端:

#vi / etc / exports

$single_array = array();

foreach($array as $keys => $values){ 
   $single_array[$values['label']] = $values['value'];
}

#sudo service nfs-kernel-server restart

#sudo exportfs -u

/home/nfs           192.168.13.81(rw,async,no_root_squash)

在客户端:

#sudo mount 192.168.13.80:/home/nfs / home / nfs

/home/nfs       192.168.13.81

尝试,

#sudo mount -t nfs4 -o proto = tcp,port = 2049 192.168.13.80:/home/nfs / home / nfs

mount.nfs: Connection timed out

“#rpcinfo -p”给出:

mount.nfs4: mounting 192.168.13.80:/home/nfs failed, reason given by server: No such file or directory

我不确定尝试什么或怎么做。请帮忙。任何帮助将受到高度赞赏。感谢。

1 个答案:

答案 0 :(得分:4)

不需要重新启动{ "_index" : "weatherstation", "_type" : "weather", "_id" : "AV63xebkYyaraTOZkf0i", "_score" : 1.0, "_source" : { "ID" : "LA", "tempf" : 9.0, "humidity" : 9, "dewptf" : 9.0, "windchillf" : 9.0, "winddir" : 9, "windspeedmph" : 9.0, "windgustmph" : 9.0, "rainin" : 9.0, "dailyrainin" : 9.0, "weeklyrainin" : 9.0, "monthlyrainin" : 9.0, "yearlyrainin" : 9.0, "solarradiation" : 9.0, "indoortemp" : 9.0, "UV" : 9, "indoortempf" : 9.0, "indoorhumidity" : 9, "baromin" : 0.0, "lowbatt" : 0, "softwaretype" : "0", "action" : "0", "realtime" : 0, "rtfreq" : 0, "dateutc" : "2017-09-25 12:00:00", "password" : "9" } } 服务。在nfs

中添加以下内容后
/etc/exports

只需重新导出NFS目录:

/home/nfs           192.168.13.81(rw,async,no_root_squash)

然后使用exportfs -ra 安装它。

nfs4

您可能还想通过以下命令检查客户端是否具有对服务器的NFS访问权限。

mount -t nfs4 192.168.13.80:/home/nfs /home/nfs

如果客户端具有访问权限,您将获得结果,行 portmapper nfs mountd nlockmgr nfs_acl rquotad