首先安装相关的软件,配置好源之后开始安装
1, yum -y install tftp
2,yum -y install tftp-server
3, yum -y install xinetd
之后进行配置:
service tftp
{
disable = no #打开服务
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /root/tftpboot #重新设置下载目录
per_source = 11
cps = 100 2
flags = IPv4
}
打开软件
chkconfig tftp on
chkconfig xinetd on
service xinetd start
在root/tftpboot目录下新建一个文件123
进行测试:
$ tftp 127.0.0.1
$ get 123