CentOS TFTP配置

1:    检查tftp服务器安装状态
    #netstat -a|grep tftp
    udp       0       0   *:tftp            *:*//代表已安装
   否则:
    yum install tftp tftp-server    

2:    
    vim /etc/xinetd.d/tftp

    service tftp
    {
            socket_type     =dgram
            protocol        =udp
            wait            =yes
            user            =root
            server          =/usr/sbin/in.tftpd
            server_args     =-s /tftp
            disable         =no
            per_source      =11
                cps             =100 2
            flags           =IPv4

    }
3:
    /etc/init.d/xinetd restart

4:    
    /etc/init.d/iptables stop  //关闭防火墙
    setenforce permissive
    
5:    
    mkdir /tftp
    chmod -R 777 /tftp

 

posted @ 2014-11-30 15:41  仰望天空+脚踏实地  阅读(422)  评论(0编辑  收藏  举报