linux下tftp(解决Loading问题 transfer timed out)

2012-12-02 21:15

tftpd服务没有启动

解决方法:启动服务

sudo /etc/init.d/xinetd restart

sudo /etc/init.d/tftpd-hpa restart  


在linux下用tftp给arm板传送文件

首先要安装tftp

1. 下载tftp服务器、客户端tftp和守护进程xinetd三个包yum install xinetd tftp tftp-server  //xinetd.i386 2:2.3.14-21.fc10//tftp-0.49-1.fc10.i386.rpm                     //tftp-server-0.49-1.fc10.i386.rpm   2.配置vi /etc/xinetd.d/tftp  修改server_args = -s /tftpboot -c,这里的-c一定要加上,否则只能下载不能上传!!!service  tftp{disable = nosocket_type             = dgramprotocol                =  udpwait                    = yesuser                    = rootserver                   = /usr/sbin/in.tftpdserver_args             = -s  /tftpboot -cper_source              = 11cps                     = 100  2flags                   = IPv4}

然后关闭防火墙(setup里设置)

但在使用中发现ping 已经通过,不过就是出现连接超时,显示loading T T T......

 

原来是还有一个SELinux没有关闭,fedora下关闭selinux的方法如下:

关闭SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启。
如果不想重启系统,使用命令setenforce 0

 

至此   tftp已可以使用

原文地址:https://www.cnblogs.com/humanchan/p/3020881.html