打开/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
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
保证 disable项为no,tftp即打开
server_args项为自己的tftp server目录(目录权限最好改以下chmod 777 -R)
启动tftp服务 /etc/init.d/xinetd restart
查看tftp是否已启动 netstat -a |grep tftp,若出现tftp项则表示tftp已启动