# 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
server_args
= -s /tftpboot -------------修改目录为/tftpboot
disable
= no ----------------------------要修改为no
per_source
= 11
cps
= 100 2
flags
= IPv4
}
重启TFTP服务
systemctl restart xinetd.service
systemctl enable xinetd
systemctl status xinetd
至此,所有服务都已完成。最后检查下DHCP、TFTP、NFS这3个服务是否都已启动,是否都已设置成开机自启
systemctl status dhcpd
systemctl status xinetd
systemctl status nfs