其實(shí)發(fā)行版本無關(guān),只是我是在14.04中安裝的,從網(wǎng)友中找到方法,很簡單明了,收藏了,
安裝完后就可以在linux下用tftp傳輸文件了,試過用minicom,但是還是不怎么方便。
1. sudo apt-get install tftpd tftp openbsd-inetd
2. sudo vi /etc/inetd.conf
#:BOOT: TFTP service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp (/srv/tftp 為默認(rèn)tftp目錄)
#修改如下文件
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftproot
3.sudo mkdir /tftproot
4.sudo chmod 777 /tftproot
5.sudo /etc/init.d/openbsd-inetd restart
6.查看69端口是否有打開 :netstat -an | more | grep udp
udp 0 0 0.0.0.0:69 0.0.0.0:*
7.本機(jī)測試:
tftp 127.0.0.1
tftp> get 1.txt
Received 12 bytes in 0.0 secondstftp> quit
原文:http://blog.csdn.net/yangzhongxuan/article/details/6395306