ubuntu 7 下 tftp 的配置

1、安装server与client
sudo apt-get install tftpd tftp openbsd-inetd

2、新建inetd启动文件
cat /etc/inetd.conf

tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /home/swordzj/arm # /home/swordzj/arm为tftp主目录

3、重新启动inetd服务
sudo /etc/init.d/openbsd-inetd start

4、测试tftpd服务是否成功
tftp localhost
tftp> put 123.log
tftp> put 123.log test.log
tftp> get test.log
tftp> get test.log abc.log
tftp> verbose
Verbose mode on.
tftp> trace
Packet tracing on.
tftp> put kkk.log
sent DATA
received ACK
.........
sent DATA
received ACK
Sent 12999997 bytes in -1.5 seconds [-69987938 bit/s]

恭喜,您的tftpd安装成功了! 
posted @ 2007-06-29 10:51  swordzj  阅读(178)  评论(0编辑  收藏  举报