首页服务器Ftp服务器 Ubuntu 8.04下搭建tftp开发davinci平台

Ubuntu 8.04下搭建tftp开发davinci平台

 1、首先安装tftp和tftpd,前者是客户端,后者是服务器。因为tftp是要inetd来控制的,而Ubuntu类的系统,默认是没有安装inetd的,安装一下。(我第一次失败了就是因为没有安装正确的in…

 

1、首先安装tftp和tftpd,前者是客户端,后者是服务器。因为tftp是要inetd来控制的,而Ubuntu类的系统,默认是没有安装inetd的,安装一下。(我第一次失败了就是因为没有安装正确的inetd)

#apt-get install tftp tftpd

#apt-get install netkit-inetd

2、在/目录下建一个tftpboot, 把属性改成777。

#cd /

#mkdir tftpboot

#chmod 777 tftpboot

3、修改/etc/inetd.conf

#emacs /etc/inetd.conf

tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot

#:INTERNAL: Internal services

#echo stream tcp nowait root internal

#echo dgram udp wait root internal

#chargen stream tcp nowait root internal

#chargen dgram udp wait root internal

#discard stream tcp nowait root internal

#discard dgram udp wait root internal

#daytime stream tcp nowait root internal

#daytime dgram udp wait root internal

#time stream tcp nowait root internal

#time dgram udp wait root internal

#tftp dgram udp wait nobody /usr/sbin/tcpd/usr/sbin/in.tftpd/tftpboot

4、重新加载inetd进程

#/etc/init.d/inetd reload

5、测试tftpd服务是否成功

tftp localhost

tftp> put mydoc.tar.gz

tftp> put test.log

tftp> get test.log

tftp> get mydoc.tar.gz

tftp>

上述表明在主机上测试tftp成功,在DM6446板子上,以root登录,使用busybox附带的tftp客户端上传/下载文件:

root@DVS6446:/tftp -r thttpd.conf -g 192.168.1.110

竟然出错,老是time out!查找原因,最后还是归结到防火墙了。防火墙本是个好东西,但好东西在特定的环境下往往成为坏东西,关闭防火墙之后就顺利实现tftp上传/下载文件了。


本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/fwq/FTP/9867.html
上一篇Linux系统vsftpd下建立虚拟用户方法介绍
下一篇 Vsftpd+tcp_wrappers控制主机和用户访问
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部