tftp是ftp服务器的一种,它提供了ftp最简单的免认证解决方案,本文介绍如何在centos 6.4 下配置tftp。
以root用户登录终端,输入以下命令
yum install tftp tftp-server
安装好后是配置工作,配置文件在 /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 # 这里是ftp文件的目录,根据需要设置
disable = no # 这里初始值是yes,要改成no
per_source = 11
cps = 100 2
flags = IPv4
}
配置完成后就可以使用了:
tftp 192.169.48.128
上面最好不要使用本地回环地址。之后可以get 、put操作了。