ubuntu tftp-server 服务器安装与配置

第一步:安装tftp服务
sudo apt-get install tftpd tftp openbsd-inetd
第二步:目录配置
vi /etc/inetd.conf
修改文件夹为根目录下的tftpboot (注意tftpboot文件夹属性 "chmod 777 /tftpboot")
#:BOOT: TFTP service is provided primarily for booting
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp (/srv/tftp 为默认tftp目录)
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
 第三步:重启服务
sudo /etc/init.d/openbsd-inetd restart
第四步:端口检测
查看69端口是否有打开
udp 0 0 0.0.0.0:69 0.0.0.0:*
第五步:本机回环测试
在/tftproot 下新建文件1.txt(chmod 777 1.txt)
tftp 127.0.0.1
get 1.txt
Received 12 bytes in 0.0 seconds

原文地址:https://www.cnblogs.com/general0878/p/4983806.html