下载
sudo apt-get install tftpd-hpa
创建文件夹
mkdir /home/ljl/work/tftpd
mkdir /home/ljl/tftpd
chmod 777 tftpd/
编辑
sudo vim /etc/default/tftpd-hpa //服务器端
sudo apt-get install tftp-hpa //客户端
编辑权限
sudo vi /etc/default/tftpd-hpa
内容:
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/home/ljl/work/tftpmy"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure -c"
启动
sudo service tftpd-hpa restart
tftp 127.0.0.1
参考:
https://blog.csdn.net/wkd_007/article/details/128992579