环境:centos6.9
下载 xinetd tftp tftp-server,其中xinetd和tftp-server是用来tftp服务器的,tftp是客户端
yum install xinetd tftp tftp-server -y
在根目录下建立 tftpboot
cd /
mkdir tftpboot
配置tftp服务器
在配置之前先做备份cp /etc/xinetd.d/tftp /etc/xinetd.d/tftp_bak
vim /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