linux 交换机tftp服务,简单文件传输TFTP服务器搭建 Linux RHEL6

Tftp的应用场合

1、交换机或路由器升级或备份

2、无盘工作站存放bootloader

3、嵌入式开发时装载系统

4、大规模的服务安装布署

安装

1、# yum install xinetd

# yum install -y

tftp-server

2、检查是否开机启动

# chkconfig --list |

grep xinet

xinetd          0:off   1:off

2:off   3:on    4:on

5:on    6:off

xinetd based

services:

chargen-dgram:  off

chargen-stream: off

cvs:            off

daytime-dgram:  off

daytime-stream: off

discard-dgram:  off

discard-stream: off

echo-dgram:     off

echo-stream:    off

rsync:          off

tcpmux-server:  off

time-dgram:     off

time-stream:    off

3、配置

# vim

/etc/xinetd.d/tftp

service tftp

{

socket_type             = dgram

protocol                = udp

wait                    = yes

user                    = root

server                  = /usr/sbin/in.tftpd

server_args             = -s /var/lib/tftpboot-c

文件存放目录RHEL5的目录为/tftp/boot可自定义-c允许上传

disable                 = no

per_source              = 11

cps                     = 100 2

flags                   = IPv4

}

#

chkconfig tftp on

也可已直接通过命令将服务改为开机启动

[root@rhel1 ~]#

chkconfig --list | grep tftp

tftp:           on

4、启动服务Xinetd

# /etc/init.d/xinetd

start

5、验证tftp是否启动成功并监听本地69端口

[root@rhel1 ~]#

netstat -anup | grep 69

udp        0

0 0.0.0.0:69

0.0.0.0:*

15763/xinetd

6、测试上传和下载

tftp -i

192.168.1.201 put TFTPServ.CNT

tftp -i

192.168.1.201 get vm-tool.tar.gz

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值