xinetd设置问题 tftp连不上。。。。

内核编译和嵌入式产品的设计与开发
回复
liunux
帖子: 51
注册时间: 2007-03-03 16:02

xinetd设置问题 tftp连不上。。。。

#1

帖子 liunux » 2008-03-23 12:46

tfpt 127.0.0.1
>get a.txt

结果 time out。。。。。

这里哪有设置错了吗?


安装了tftp和xinetd。
在根目录下创建了/tftpboot
sudo chmod 777 /tftpboot

xinetd.conf的内容是:
defaults
{

# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60 
log_type = SYSLOG authpriv 
log_on_success = HOST PID 
log_on_failure = HOST 
cps = 25 30 
}

includedir /etc/xinetd.d

在xinetd.d目录下新建了文件tftp:
# default: off

# description: The tftp server serves files using the trivial file transfer

\

# protocol. The tftp protocol is often used to boot diskless \

# workstations, download configuration files to network-aware

printers, \

# and to start the installation process for some operating systems.

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

flags = IPv4

}

重启:sudo /etc/init.d/xintd restart

tfpt 127.0.0.1
>get a.txt

结果 time out。。。。。

这里哪有设置错了吗?
回复