Ubuntu下配置tftp服务和NFS服务

转自 http://www.cnblogs.com/shenhaocn/archive/2011/03/13/1983042.html

具体操作详见上述链接。

1.tftp使用  

#restart tftpd-hpa

#tftp -l /absolute-path/test.c  -r  relative-path-to-ftp-root-path/test.c  -g  192.168.1.103

注:表示将远程主机上的/tftpboot/test.c下载到开发板的/home/目录下,并改名为test.c文件。

  -l :localhost      -r :remote   -g:get     192.168.1.103是远程主机ip。

  同理,如果要将本地文件上传到远程服务器,把 -g 该为 -p ,p为put的意思。

2. nfs使用 

#service nfs-kernel-server restart 

#mount -t nfs localhost:/root/nfsboot /mnt

Error 1: "access denied by server while mounting localhost"

解决方法:修改/etc/exports中的限制,比如改成192.168.1/24,允许局域网内部访问,或*,不限制。

Error 2: "protocol not supported"

解决方法:http://jarson.asia/2013/04/13/mount-nfs-protocol-not-supported-%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95

不错的链接 http://blog.csdn.net/leo115/article/details/7340682

原文地址:https://www.cnblogs.com/Amagasaki/p/3431310.html