簡單檔案傳輸TFTP伺服器搭建 Linux RHEL6

來源:互聯網
上載者:User

標籤:簡單檔案傳輸tftp伺服器搭建 linux rhel6

Tftp 的應用場合

1、交換器或路由器升級或備份

2、無盤工作站 存放boot loader

3、嵌入式開發時裝載系統

4、大規模的服務安裝布署

 

安裝

1、# yum install xinetd

      # yum install -ytftp-server

2、檢查是否開機啟動

# chkconfig --list |grep xinet

xinetd          0:off   1:off  2:off   3:on    4:on   5:on    6:off

xinetd basedservices:

        chargen-dgram:  off

        chargen-stream: off

        cvs:            off

        daytime-dgram:  off

        daytime-stream: off

        discard-dgram:  off

        discard-stream: off

        echo-dgram:     off

        echo-stream:    off

        rsync:          off

        tcpmux-server:  off

        time-dgram:     off

        time-stream:    off

3、配置

   # vim/etc/xinetd.d/tftp

service tftp

{

        socket_type             = dgram

        protocol                = udp

        wait                    = yes

        user                    = root

        server                  = /usr/sbin/in.tftpd

        server_args             = -s /var/lib/tftpboot   -c 

      檔案存放目錄 RHEL5的目錄為 /tftp/boot  可自訂 -c 允許上傳

        disable                 = no

        per_source              = 11

        cps                     = 100 2

        flags                   = IPv4

}

#chkconfig tftp on   

  也可已直接通過命令將服務改為開機啟動

 

[[email protected] ~]#chkconfig --list | grep tftp

        tftp:           on

 

 

4、啟動服務Xinetd

# /etc/init.d/xinetdstart

 

5、驗證tftp是否啟動成功並監聽本地69連接埠

[[email protected] ~]#netstat -anup | grep 69

udp        0     0 0.0.0.0:69                 0.0.0.0:*                              15763/xinetd       

 

6、測試上傳和下載

tftp -i192.168.1.201 put TFTPServ.CNT

tftp -i192.168.1.201 get vm-tool.tar.gz

 


本文出自 “lihongweibj” 部落格,請務必保留此出處http://lihongweibj.blog.51cto.com/6235038/1659588

簡單檔案傳輸TFTP伺服器搭建 Linux RHEL6

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.