免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1950 | 回复: 7
打印 上一主题 下一主题

[网络管理] 急求!ubuntu 下tftp配置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-11-08 22:19 |只看该作者 |倒序浏览
根目录下/tftpboot里的文件用get总是提示:
Error code 1: File not found
怎么回事?
1./etc/xinetd.d/tftp
    service tftp
         {
             disable         = no
             socket_type     = dgram
             protocol        = udp
             wait            = yes
             user            = root
             server          = /usr/sbin/in.tftpd
             server_args     = -s /tftpboot
             source          = 11
             cps             = 100 2
             flags =IPv4
         }
2./ect/xinetd.conf
# Simple configuration file for xinetd   
#   
# Some defaults, and include /etc/xinetd.d/   
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   
}   
includedir /etc/xinetd.d  
3./ect/inetd.conf

除了这三个文件还有别的吗?

论坛徽章:
0
2 [报告]
发表于 2010-11-09 08:26 |只看该作者
上次有个哥们也这样的问题。
配置应该是没错的,不熟悉ubuntu,你看看是不是有selinux之类的。
然后检查一下他get的文件是否真的存在,还有一个办法就是你put一个文件上去,看能不能成功。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
3 [报告]
发表于 2010-11-09 08:32 |只看该作者
没有别的配置文件了.
楼主检查下系统日志看看错误在什么地方

论坛徽章:
0
4 [报告]
发表于 2010-11-09 09:28 |只看该作者
好像 也不能put

论坛徽章:
0
5 [报告]
发表于 2010-11-09 12:10 |只看该作者
回复 4# xiaobudiu
  1. ls -l / |grep tftpboot
  2. ls -l /tftpboot
  3. iptables -vnL
复制代码
这几行结果贴上来看看

论坛徽章:
0
6 [报告]
发表于 2010-11-09 14:03 |只看该作者
1.ls -l / |grep tftpboot
linux@ubuntu:~$ ls -l / |grep tftpboot
drwxrwxrwx   2 root root  4096 2010-11-08 05:27 tftpboot

2.ls -l /tftpboot
linux@ubuntu:~$ ls -l /tftpboot/
total 4
-rw-r--r-- 1 linux linux 120 2010-11-08 05:27 1

3.iptables -vnL
linux@ubuntu:~$ sudo iptables -vnL
[sudo] password for linux:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination

论坛徽章:
0
7 [报告]
发表于 2010-11-09 17:00 |只看该作者
把selinux禁用掉试试

论坛徽章:
0
8 [报告]
发表于 2010-11-10 21:10 |只看该作者
???
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP