tftp服务器安装与配置

tftp服务器


trivial file transfer protocol 简单文件传输协议


tftp有三种传输模式:
netASCII 8位ASSCII
八位组模式
邮件模式


检查是否安装
[root@localhost Server]# rpm -qa | grep tftp-server
tftp-server-0.49-2




安装
挂载安装文件镜像
[root@localhost Server]# rpm -ivh tftp-0.49-2.i386.rpm
warning: tftp-0.49-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...


(100########################################### [100%]
1:tftp (


88########################################### [100%]




[root@localhost Server]# rpm -ivh tftp-server-0.49-2.i386.rpm
warning: tftp-server-0.49-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID


37017186
error: Failed dependencies:
xinetd is needed by tftp-server-0.49-2.i386


[root@localhost Server]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpm
warning: xinetd-2.3.14-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID


37017186
Preparing...


(100########################################### [100%]
1:xinetd (


1########################################### [100%]


[root@localhost Server]# rpm -ivh tftp-server-0.49-2.i386.rpm
warning: tftp-server-0.49-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID


37017186
Preparing...


(100########################################### [100%]
1:tftp-server (


2########################################### [100%]






修改配置文件
[root@localhost /]# vi /etc/xinetd.d/tftp


# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no #修改此处
per_source = 11
cps = 100 2
flags = IPv4
}


启动服务器
[root@localhost ~]# /etc/init.d/xinetd start
启动 xinetd: ol. O


查看服务器是否启动成功
[root@localhost ~]# netstat -a|grep tftp
udp 0 0 *:tftp *:*


检查端口
[root@localhost ~]# netstat -anulp | grep 69
udp 0 0 0.0.0.0:69 0.0.0.0:*


10548/xinetd




客户端
[root@localhost Server]# tftp
(to) 192.168.1.26
tftp> get /home
注:
/*常用以下文件用作目录文件*/
get ls.txt

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值