sudo apt-get install xinetd
sudo apt-get install tftp-hpa
sudo apt-get install tftpd-hpa
sudo vim /etc/default/tftpd-hpa
===
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure -c"
===
sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
cp .vimrc /tftpboot/v.txt
sudo /etc/init.d/xinetd restart
sudo service tftpd-hpa stop
sudo service tftpd-hpa start
===
ldm@ldm-TOP2:/etc$ ps -A |grep ftp
1623 ? 00:00:00 vsftpd
2686 ? 00:00:00 in.tftpd
===
tftp localhost
put 成功,get失败, 报告permission denied。
chmod 755 /tftpboot/v.txt
然后get v.txt就成功了。
阅读(1351) | 评论(0) | 转发(0) |