//tftp server 安装
yum install xinetd tftp tftp-server
//修改配置参数
vim /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /opt/tftpboot -c //add -c
disable = no //enable tftp
per_source = 11
cps = 100 2
flags = IPv4
}
//修改目录权限
chmod -R 777 /opt/tftpboot
配置防火墙
firewall-cmd --add-port=69/udp --permanent
firewall-cmd --reload
//设置重启与开机自运行S
systemctl restart xinetd
systemctl enable xinetd
systemctl restart tftp
systemctl enable tftp
在使用中出现无法下载的问题,关闭selinux