Ubuntu 12.04.4 LTS 安装 tftp 服务器(验证通过)(参考他人blog,把实用的提出来了)

Linux ysk 3.8.0-39-generic #58~precise1-Ubuntu SMP Fri May 2 21:33:17 UTC 2014 i686 i686 i386 GNU/Linux

ysk@ysk:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:    12.04
Codename:    precise
ysk@ysk:~$

 

1、安装相关软件包

apt-get install tftpd      (服务端)
apt-get install tftp      (客户端)  
apt-get install xinetd  

2、建立配置文件

cd /etc/xinetd.d/
vi tftp
输入
service tftp
{
           socket_type                = dgram
           protocol                   = udp
           wait                       = yes
           user                       = root
           server                     = /usr/sbin/in.tftpd
           server_args                = -s /tftpboot
           disable                    = no
           per_source                 = 11
           cps                        = 100 2
           flags                      = IPv4
}

存盘退出

3、建立tftp服务文件目录
      mkdir /tftpboot
4、从新启动服务
      /etc/init.d/xinetd restart

安装完成!测试方法:
/tftpboot 目录下随便放个文件abc
然后 运行tftp 192.168.123.202 进入tftp命令行
输入get abc 看看是不是能把文件下下来,如果可以就可以了,也可以put 文件上


参考博客地址:http://blog.csdn.net/hens007/article/details/7255465

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值