1.apt-get install tftpd
apt-get install tftp
xinetd v.s. netkit-inetd ?
I choose xineted
2 apt-get install xinetd
cd /etc/xinetd.d/
vim tftp
输入
#--------------------------------
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
}
#--------------------------------------
/etc/init.d/xinetd restart
<!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } -->
# tftp 192.168.1.100 // test tftp> put hello.c Sent 65 bytes in 0.0 seconds
OK