TFTP server can be installed using following command, where xinetd is necessary.
#安裝 tftp server
yum install xinetd tftp-server
#編輯設定檔
nano /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
#-c allow client upload file
#-s use this path to as server directory
server_args = -c -s /var/tftp
# disable = no 不關閉 tftp server
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
systemctl restart xinetd tftp
systemctl enable xinetd tftp
參考資料