zoukankan      html  css  js  c++  java
  • ubuntu8.04下搭建tftp开发davinci平台



    作者:microtiger  出自: http://www.linuxdiyf.com


    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上传/下载文件了。




    版权声明: 原创作品,允诺转载,转载时请务必以超链接体式格局标明文章 原始起因 、作者信息和本声明。不然将穷究法则责任。

  • 相关阅读:
    什么是高可用性(High Availability)?
    Programer's Tools
    dotnetcore 站点搭建实践
    Nginx使用总结
    小程序开发工具一直登陆不上,提示网络失败
    前端页面JS和CSS以及图片加载nginx报错:net::ERR_CONTENT_LENGTH_MISMATCH的解决与检查
    angualrjs添加ngTouch
    H5自定义金额键盘,改良后ios体验效果流畅
    js生成带有logo的二维码并保存成图片下载
    模仿input闪烁光标
  • 原文地址:https://www.cnblogs.com/zgqjymx/p/1974538.html
Copyright © 2011-2022 走看看