Add Go/Postgres admin APIs, Angular admin UI, manual build flow, asset uploads, markdown import/export, configurable slug generation, and the Yar reading theme. Exclude local docs and generated development artifacts from version control.
1.4 KiB
1.4 KiB
| id | slug | title | summary | status | tags | cover | version | slug_source | slug_locked | published_at | created_at | updated_at |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 53dd96ff-65e1-4ee9-8cb4-c8130e2eb0d5 | nfs-mount-connection-timed-out | [NFS] mount: Connection timed out | published | 1 | manual | true | 2023-04-06T20:09:29+08:00 | 2023-04-06T20:09:29+08:00 | 2025-12-31T23:58:09+08:00 |
问题描述
Linux 服务端和 Arm 开发板客户端进行 NFS 服务的连接。
Linux 和 Arm 开发板之间能ping通,并且处于同一网端,且掩码、网口相同,但是在执行下面的程序时发生超时错误。
在服务端的nfs配置完全正确的情况下,Arm开发板还是无法正确连接nfs服务器。
[root@FORLINX6410]# mount -t nfs -o nolock,hard 192.168.1.5:/home/yarnom/nfs /mnt
mount: mounting 192.168.1.5:/home/yarnom/nfs on /mnt failed: Connection timed out
解决
这个问题困扰了我两天终于在这个帖子里找到了解决方案。
Mount the NFS filesystem using the TCP protocol instead of the default UDP protocol. Many NFS servers only support UDP.
这是在NFSv3中添加了对TCP协议的支持:
总之,我尝试了下面的命令,使用了tcp协议:
$ mount -t nfs -o nolock,proto=tcp,port=2049 192.168.1.5:/home/yarnom/nfs /mnt
这个协议最终使我正确连接上了nfs服务器。