tftp服务器怎么开启linux,启动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

脚本修改后的效果如下:

b2e164299a9ed260bccf68213a10c2e7.png

第三步:

启动TFTP服务

service xinetd restart

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

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

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:

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

Install the TFTP server package

host $ rpm -ivh

Confirm that TFTP is installed

host $ /sbin/chkconfig --list | grep tftp

Turn on the TFTP server

host $ /sbin/chkconfig tftp on

The default root location for TFTP files is /tftpboot.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值