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




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

  • 相关阅读:
    python numpty 中shape的用法
    卷积神经网络中参数的计算
    linux学习
    数据结构排序算法总结
    剑指offer 刷题 01
    30-大道至简——随机森林如何将分类器由弱变强
    29-用python构造一棵决策树
    28-决策树算法——简单有效的概率模型
    27-如何度量分类算法的性能好坏(Scoring metrics for classification)
    26-史上最简单的分类算法——KNN
  • 原文地址:https://www.cnblogs.com/zgqjymx/p/1974538.html
Copyright © 2011-2022 走看看