先安装tftp服务端
yum install tftp-server.i686
安装完成后修改 /etc/xinetd.d/tftp文件为如下
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s/home/kez/dm8168/DVRRDK_02.00.00.23/tftphome -c
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
说明:修改项server_args= -s <path> -c,其中<path>处可以改为你的tftp-server的根目录,参数-s指定chroot,-c:可以进行下载功能
关闭防火墙:/etc/init.d/iptables stop
#service xinetd restart或者:/etc/init.d/xinetd start(或restart)
这样,tftp-server就启动了
tftp your-ip-address
tftp>get <download file>
tftp your-ip-address
tftp>get <download file>
tftp>put <upload file>
tftp>q