https://blog.csdn.net/donglicaiju76152/article/details/76651210按说在Linux下安装tftp server 很简单,之前操作过很多次了。这次也是直接从网上搜索,搜出了很多内容。之前都是在Centos下安装的,这次是第一次在Ubuntu下安装,看那些内容有些不太一样,但是大同小异。 失败方案下面的操作是按照网上来的: 安装软件apt-get install xinetd tftp tftpd 修改配置文件vi /etc/xinetd.d/tftp
创建目录mkdir /root/tftpboot 启动服务/etc/init.d/xinetd restart 查看服务netstat -an | more | grep udp 测试tftp 127.0.0.1 此次出现了错误,网上也众说不一。 再次测试Transfer timed out 直接无语,安装个TFTP这么折腾,再次上网搜索,终于发现了一篇文章。他里面给出的结论是上面的操作也是不成功的,接着给出了新的解决方案。 成功方案安装软件apt-get install tftp-hpa tftpd-hpa xinetd 修改配置vi /etc/default/tftpd-hpa
重启服务service tftpd-hpa restart 测试tftp 127.0.0.1 或者 tftp localhost
tftp> get hello 成功! NFS安装软件apt-get install nfs-kernel-server 修改配置vi /etc/exports 重启服务/etc/init.d/rpcbind restart 测试mount -t nfs 192.168.2.104:/root/rootfs /mnt/ 参考http://liucw.blog.51cto.com/6751239/1223695 |
|
来自: XeonGate > 《Ubuntu 16.04.6》