ubuntu 12.04 lts tftp的安装与设置

来源:互联网 发布:python 修改字符串 编辑:程序博客网 时间:2024/05/02 02:20

1.用root帐户

安装tftp-hpa   tftpd-hpa  xinetd

 #apt-get install tftp-hpa tftpd-hpa xinetd

2.mkdir /tftpboot

  chmod 777 /tftpboot

3.gedit /etc/xinetd.d/tftp

service tftp
{
             disable        = no
             socket_type = dgram
             protocol       = udp
             wait            = yes
             user           = root
             server         = /usr/sbin/in.tftpd
             server_args = -s /tftpboot

             source         = 11
             cps            = 100 2
             flags        =IPv4
   }

4.gedit /etc/inetd.conf

 tftp  dgram    udp    wait    nobody    /usr/sbin/tcpd  /usr/sbin/in.tftpd   /tftpboot

其中/tftpboot为 tftp共享目录

5修改tftpd-hpa文件gedit /etc/default/tftpd-hpa  

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot/root"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -c -s"

 

 

原创粉丝点击