安装软件
apt-get install tftp-hpa tftpd-hpa xinetd
修改配置
vi /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/root/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure -c"
重启服务
service tftpd-hpa restart
测试
tftp 127.0.0.1
tftp> get hello
tftp> quit
成功!
参考学习:
https://blog.csdn.net/donglicaiju76152/article/details/76651210