求助TFTP Error code 2: Only absolute filenames allowed错误

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
xwcmx
帖子: 5
注册时间: 2008-10-14 9:01

求助TFTP Error code 2: Only absolute filenames allowed错误

#1

帖子 xwcmx » 2009-04-18 10:21

求助:
安装TFTP服务器后,下载文件提示:
Error code 2: Only absolute filenames allowed错误
我安装的步骤如下(以前在桌面版中这样是可以使用的):

安装TFTP服务器
$ sudo apt-get install xinetd tftpd tftp
创建 /etc/xinetd.d/tftp 文件:
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}

3. 创建目录 /tftpboot directory

$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R root /tftpboot

4. 通过 xinetd 启动 tftpd
$ sudo /etc/init.d/xinetd reload
$ sudo /etc/init.d/xinetd restart

查看TFTPd是否运行

# netstat -al | grep ^udp
udp 0 0 *:bootpc *:*
udp 0 0 *:631 *:*
udp 0 0 *:xdmcp *:*
udp 0 0 *:tftp *:*

/tftpboot 目录下的文件的权限也改了所有用户都可以读写
tomorrowlhd
帖子: 6
注册时间: 2009-12-02 13:54

Re: 求助TFTP Error code 2: Only absolute filenames allowed错误

#2

帖子 tomorrowlhd » 2009-12-16 15:04

guan zhu yi yang de wen ti :em06
iamjixiaoyu
帖子: 4
注册时间: 2010-08-06 12:51

Re: 求助TFTP Error code 2: Only absolute filenames allowed错误

#3

帖子 iamjixiaoyu » 2011-10-01 1:40

使用绝对路径就好了,例如/tftpboot路径下有abc文件,则使用命令
get /tftpboot/abc
具体如何使用相对路径的办法我还没有找到,正在学习中。。。。。。
回复