This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我按以下步骤安装TFTP服务器,但PUT TEST时老是出现
FORBIDDEN DIRECTORY 的错误.请高手指点
1. sudo apt-get install tftp-hpa tftpd-hpa
sudo apt-get install xinetd
sudo apt-get install netkit-inetd
2. cd /
sudo mkdir /tftpboot
sudo chmod 777 /tftpboot
3. sudo in.tftpd -l /tftpboot
4. cd /tftpboot
touch test
5. cd /home/usrname
6. tftp 192.168.0.59
> get /tftpboot/test
打开目录 /etc/xinetd.d/
新建文件tftp
tftp内容:
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
per_source = 11
cps = 100 2
}
重新启动服务:
sudo /etc/init.d/xinetd restart
sudo in.tftpd -l /tftpboot
在该DEMO板的SDK包中有一个setup.sh文件,执行sudo ./setup.sh后可以自行配置开发平台,在此之间只需要把需要的服务包如tftp tftpd xinet nfs-kernel-sever包等等安装好,然后就应该能够正常通过配置,关于楼主说的上述修改配置文件倒是无需手动配置
建议参考:
processors.wiki.ti.com/.../Setting_Up_a_TFTP_Server
上面有非常详细的关于TFTP服务器的介绍,谢谢!
以下是我在Ubuntu 10.04上配置的TFTP服务的详细步骤,供你参考:
1.下载安装tftpd服务
#sudo apt-get install tftpd-hpa tftp-hpa
2.修改配置文件
#sudo gedit /etc/default/tftpd-hpa
tftpd-hpa参考配置为:
TFTP_USERNAME="tftp
TFTP_DIRECTORY="/tftpboot" //tftpd-hpa 的根目录
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -c -s" //
3.重启服务
#sudo service tftpd-hpa restart