debian8 配置使用 nfs

操作过的步骤:

1、dpkg-reconfigre rpcbind。

2、在终端上退出要挂载的目录。

错误:
mount -t nfs 172.16.0.121:/home/junda /mnt,出现以下错误
mount: mounting 172.16.0.121:/home/junda on /mnt failed: Connection refused

解决方法:

加上 -o nolock ,即可以。

错误: mount: mounting 192.168.101.116:/home on /mnt/nfs failed: No such device

解决方法: 内核kernel支持。

错误:用secure CRT 进行连接时

The server has disconnected with an error.  Server message reads: A protocol error occurred. Change of username or service not allowed: (root,ssh-connection) -> (hzijone,ssh-connection)  

debian8不允许以根用户ssh连接,而在Sercure CRT建立“快速连接”时的指定的用户名为root。连接失败弹出的框改为一般用户名后,连接时会出现上述错误。

      

解决方法:在Secure CRT 的session Options修改为一般用户。

            

原文地址:https://www.cnblogs.com/hzijone/p/4987720.html