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

  • 相关阅读:
    TP5报如下的错误 Indirect modification of overloaded element of thinkpaginatorCollection has no effect【转】
    PHPnumber_format()函数的使用
    蓝桥杯-PREV28-地宫取宝
    HihoCode-1053-居民迁移
    HihoCode-1323-回文字符串
    蓝桥杯-PREV3-带分数
    HDU-6312-Game
    HDU-6438-Buy and Resell
    CF-1117C-Magic Ship
    HDU-2802-F(N)
  • 原文地址:https://www.cnblogs.com/findumars/p/6375981.html
Copyright © 2011-2022 走看看