Chinaunix首页 | 论坛 | 博客
  • 博客访问: 43510
  • 博文数量: 9
  • 博客积分: 465
  • 博客等级: 下士
  • 技术积分: 120
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-11 15:07
文章分类

全部博文(9)

文章存档

2011年(2)

2010年(7)

我的朋友
最近访客

分类: 嵌入式

2010-10-18 15:41:20


操作系统:Fedora7
检查系统是否安装tftp  中断输入:rpm -qa | grep tftp
1.虚拟机能要上网
2.终端输入:yum  install  tftp-server   (说明是服务器端)
3.设置 /etc/xinetd.d/tftp
中的       
disable = yes 改为 no
或者
终端输入:setup     ,在设置界面把tftp选中(这个操作是把disable = yes 改为 no )
4.创建目录,关闭防火墙,启动tftp-server
 mkdir /tftpboot
 chmod -R 777 /tftpboot
 iptables -F
 由于tftp服务依赖于xinetd服务,重启xinetd服务
servcie xinetd  restart
5.查看69端口是否打开
 netstat -nlp | grep "69"
udp        0      0 0.0.0.0:69                  0.0.0.0:*                                                 8111/xinetd
6.测试tftp服务器
  1.使用uboot下载测试
  2.使用windows的Tftpd32来测试(未测试)

tftp有分 tftp-server 和 tftp ,
tftp 是客户端
tftp-server 是服务端.

tftp文件查看
cat /etc/xinetd.d/tftp
service tftp
{
        disable                 = no              //把"yes"改为"no",即打开tftp
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot    //这里指定/tftpboot 为tftp服务器的根目录 参数-s指定chroot
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

阅读(1157) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~