Chinaunix首页 | 论坛 | 博客
  • 博客访问: 309019
  • 博文数量: 72
  • 博客积分: 3111
  • 博客等级: 中校
  • 技术积分: 668
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-30 15:45
个人简介

朝着心的方向前进

文章分类

全部博文(72)

文章存档

2014年(5)

2013年(1)

2012年(1)

2011年(1)

2010年(24)

2009年(40)

我的朋友

分类: 嵌入式

2010-06-09 00:52:24

tftp不能用了,所以要配置一下,但是不是每次都能上网找,得有自己的记录
所以如下配置即可
环境 REDHAT 5.4
先查看有没有安装tftp-server
rpm -qa | grep tftp
我的结果如下:
[root@localhost tftpboot]# rpm -qa | grep tftp
tftp-server-0.42-3.1
然后
vim /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 /work/tftpboot -c
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
说明:修改项server_args= -s -c,其中处可以改为你的tftp-server的根目录,参数-s指定chroot,-c指定了可以创建文件。
再如下 启动服务
[root@localhost tftpboot]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
[root@localhost tftpboot]# netstat -a | grep tftp
udp        0      0 *:tftp                      *:*                                    
udp        0      0 *:tftp                      *:*   
阅读(739) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~