Chinaunix首页 | 论坛 | 博客
  • 博客访问: 12399077
  • 博文数量: 1293
  • 博客积分: 13501
  • 博客等级: 上将
  • 技术积分: 17974
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-08 18:11
文章分类

全部博文(1293)

文章存档

2019年(1)

2018年(1)

2016年(118)

2015年(257)

2014年(128)

2013年(222)

2012年(229)

2011年(337)

分类: LINUX

2011-03-25 00:09:54

 

第一步:检查TFTP服务是否安装

# rpm -qa|grep tftp ;若没安装什么也不显视

;若安装会返回:tftp-XXX

第二步:建立根目录/tftpboot

# mkdir  tftpboot

第三步:安装和配置

1.首先介绍我们接下来要安装的三个包:

1).xinetd:xinetd是一个守护进程,用于处理对各种服务的请求,当xinetd监控的服务请求出现时,    xinetd会使用/etc /xinetd.conf文件读取/etc/xinetd.d目录中的配置文件,然后,根据所请    求服务的xinetd.conf文件内容,启动相应的程序.

2).tftpd :服务端

3).tftp:客户端

2.安装相关软件包

# apt-get install tftpd (服务端)

# apt-get install tftp (客户端)

# apt-get install xinetd

3.建立配置文件

# cd /etc/xinetd.d/

# vim tftp ;注意这个文件是自己建的,不是install后生成的

----------------------------------------------------------------------------------------------------------

#/etc/xintd.d/tftp

# default: off

# description: The tftp server serves files using the trivial file transfer \

#       protocol.  The tftp protocol is often used to boot diskless \

#       workstations, download configuration files to network-aware printers, \

#       and to start the installation process for some operating systems.

service tftp

{

        disable  = no    //no表示要打开TFTP服务

        socket_type             = dgram

        protocol                = udp

        wait                    = yes

        user                    = root

        server                  = /usr/sbin/in.tftpd  ;in.tftpd是服务器程序

        server_args             = -s /tftpboot        ;要输出的文件必须存在根目录

   ;/tftpboot

        per_source              = 11

        cps                     = 100 2

        flags                   = IPv4

}

                                                                  ----------------------------------------------------------

第四步:使用restart使xinetd重启TFT服务

# /etc/init.d/xinetd restart

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