操作系统:centos7.9
# 安装tftp需要的支持xinetd
yum install xinetd
systemctl start xinetd
# 安装tftp-server
yum install tftp-server
# 更改配置文件后启动tftp服务
systemctl start tftp
编辑配置文件:/etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
# 指定存储路径,-c表示可以上传
server_args = -s /var/lib/tftpboot -c
# 此行改为no,从而启用tftp
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
A dependency job for tftp.service failed. See 'journalctl -xe' for details.