zoukankan      html  css  js  c++  java
  • tftp的安装及配置

    1.安装tftp服务客户端
    sudo apt-get install tftp

    2.安装tftp服务器端
    sudo apt-get install tftpd

    3.安装xinetd
    注意同类似的还有openbsd-inetd和inetutils-inetd,而netkit-inetd是不存在的,是个虚拟包
    sudo apt-get install xinetd

    4.建立tftp目录
    cd /
    sudo mkdir tftpboot
    sudo chmod 777 tftpboot
     
    5.配置xinetd及tftp
    在/etc/inetd.conf中加入如下一行:
    tftp        dgram    udp    wait    nobody    /usr/sbin/tcpd    /usr/sbin/in.tftpd /tftpboot

    编辑/etc/xinetd.d/tftp文件
    -------------------------------
    service tftp
    {
        socket_type     =dgram
        protocol        =udp
        wait            =yes
        user            =root
        server          =/usr/sbin/in.tftpd
        server_args     =-s /tftpboot
        disable         =no
        per_source      = 11
        cps             = 100 2
        flags        = IPv4
    }
    -------------------------------

    6.重启xinetd
    sudo /etc/init.d/xinetd reload

    7.测试tftp

    cd /tftpboot
    touch aaa

    然后在另一个文件夹中
    cd ~
    tftp localhost
    $tftp->get aaa
    $tftp->q

    http://blog.sina.com.cn/s/blog_8738908f0100v864.html

  • 相关阅读:
    iOS应用程序生命周期(前后台切换,应用的各种状态)详解
    Urlrewrite
    下载文件、根据链接生成二维码
    三级联动
    easy-ui的datagrid
    $.extend、$.fn.extend
    windows.open、 window.location.href
    JS小整理
    Jsp数字格式化
    同时执行多个$.getJSON() 出现数据混乱的问题的解决
  • 原文地址:https://www.cnblogs.com/findumars/p/6375981.html
Copyright © 2011-2022 走看看