启动LINUX下的TFTP服务器

第一步:

我们要确认,LINUX下是不是安装了TFTP-SERVER.

在LINUX下输入:

rpm -q tftp-server

如出现如下回复:

tftp-server-0.39-2  则表示tftp-server已安装.

第二步:

修改TFTP启动脚本:

方法一:

需要修改ftptpd的启动脚本
vi /etc/xinetd.d/tftp
加上 disable =no  此时即可启动tfpt服务

方法二:

直接输入: /sbin/chkconfig tftp on

此命令也是在启动脚本中加上disable=no

脚本修改后的效果如下:

 

第三步:

启动TFTP服务
 service xinetd restart

这样我们的服务就启动OK了.

 

TFTP的默认根目录在/tftproot中.

 

tftp简易客户端:

http://www.cnblogs.com/hnrainll/archive/2011/05/06/2038709.html

 

________________________________________________________________________

You can check to see if a TFTP server is set up with the following command:

host $ rpm -q tftp-server

You should expect to see output similar to:

tftp-server-0.39-2

NOTE: Your version may be different than the one listed above. This is OK, the version above is just an example.

If it is not setup, you can follow these steps:

  1. Download a TFTP server for your Linux host. You can search the internet for "tftp-server". You can find the RPM package for download here
  2. Install the TFTP server package
    host $ rpm -ivh <tftp-server package name>
  3. Confirm that TFTP is installed
    host $ /sbin/chkconfig --list | grep tftp
  4. Turn on the TFTP server
    host $ /sbin/chkconfig tftp on

The default root location for TFTP files is /tftpboot.

原文地址:https://www.cnblogs.com/hnrainll/p/2038702.html