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

  • 相关阅读:
    python---redis缓存页面前戏之剖析render源码
    python---redis的python使用
    python---redis中文操作与系统中文检测
    python---redis在windows安装以及测试
    python---基于memcache的自定义session类
    python---memcache使用操作
    python---memcache基本使用以及内部原理
    googlecast
    Android-L-Samples
    libsuperuser
  • 原文地址:https://www.cnblogs.com/findumars/p/6375981.html
Copyright © 2011-2022 走看看