三、创建数据文件夹,重新启动XINETD
#mkdir /tftpboot
#chmod o+w /tftpboot或者chmod 777 /tftpboot
#/etc/init.d/xinetd restart或者service xinetd restart
我是在网络服务里选上了tftp自动启动的.
$setup
选择systemservices里面的tftp,去掉ipchains和iptables两项服务(即去掉它们前面
的*号)
测试e.g:
#tftp 172.21.5.113
tftp>get xxxx
tftp>put xxxx
tftp>h会有帮助提示。CODE:--------------/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
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
per_source = 11
cps = 100 2
flags = IPv4
}