Chinaunix首页 | 论坛 | 博客
  • 博客访问: 203266
  • 博文数量: 93
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 978
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-10 15:46
个人简介

青春无悔

文章分类

全部博文(93)

文章存档

2015年(16)

2014年(77)

我的朋友

分类: LINUX

2014-11-10 20:17:08

转自:http://blog.csdn.net/yangzhongxuan/article/details/6395306

1. sudo apt-get install tftpd tftp openbsd-inetd

2. sudo  vi /etc/inetd.conf

#:BOOT: TFTP service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp  (/srv/tftp 为默认tftp目录)

#修改如下文件
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftproot

3.sudo mkdir /tftproot

4.sudo chmod 777 /tftproot

5.sudo /etc/init.d/openbsd-inetd restart

6.查看69端口是否有打开 :netstat -an | more | grep udp

udp 0 0 0.0.0.0:69 0.0.0.0:*

7.本机测试:

      a. 在/tftproot 下新建文件1.txt   
      b. 在其他目录下测试:
       tftp 127.0.0.1
       tftp> get 1.txt
        Received 12 bytes in 0.0 seconds
        tftp> quit

tftp -g -r u-boot.img 172.18.52.157
阅读(636) | 评论(0) | 转发(0) |
0

上一篇:ubuntu下搭建nfs服务器

下一篇:测试rtc驱动

给主人留下些什么吧!~~