Linux服務(wù)器配置---tftpserver

安裝tftp-server

成都創(chuàng)新互聯(lián)公司憑借專業(yè)的設(shè)計(jì)團(tuán)隊(duì)扎實(shí)的技術(shù)支持、優(yōu)質(zhì)高效的服務(wù)意識(shí)和豐厚的資源優(yōu)勢(shì),提供專業(yè)的網(wǎng)站策劃、成都做網(wǎng)站、成都網(wǎng)站制作、網(wǎng)站優(yōu)化、軟件開(kāi)發(fā)、網(wǎng)站改版等服務(wù),在成都十余年的網(wǎng)站建設(shè)設(shè)計(jì)經(jīng)驗(yàn),為成都數(shù)千家中小型企業(yè)策劃設(shè)計(jì)了網(wǎng)站。

1 、安裝tftp-server

[root@localhost weijie]#  yum install -y tftp-server

Loaded plugins: fastestmirror, refresh-packagekit, security

Running Transaction

  Installing : tftp-server-0.49-8.el6.i686                                  1/1 

  Verifying  : tftp-server-0.49-8.el6.i686                                  1/1 

Installed:

  tftp-server.i686 0:0.49-8.el6                                                

Complete!

 

2 、打開(kāi)配置文件“/etc/xinetd.d/tftp“ 

[root@localhost weijie]#  gedit /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          // 默認(rèn)目錄

     disable           = no                                // 是否啟動(dòng)

    per_source    = 11

    cps        = 100 2

    flags         = IPv4

}

 

3 、修改防火墻,允許udp端口號(hào)69

[root@localhost weijie]#  gedit /etc/sysconfig/iptables

-A INPUT -m state --state NEW -m udp -p udp --dport 69 -j ACCEPT

 

4 、重啟服務(wù)

[root@localhost weijie]#  service iptables restart               // 重啟防火墻

iptables :將鏈設(shè)置為政策  ACCEPT filter nat                [ 確定 ]

iptables :清除防火墻規(guī)則:                                  [ 確定 ]

iptables :正在卸載模塊:                                    [ 確定 ]

iptables :應(yīng)用防火墻規(guī)則:                                  [ 確定 ]

iptables :載入額外模塊: nf_conntrack_ftp                   [ 確定 ]

You have new mail in /var/spool/mail/root

[root@localhost weijie]#  service xinetd restart              // 重啟 xinetd , tftp 依賴 xinetd 服務(wù)

停止 xinetd                                              [ 確定 ]

正在啟動(dòng) xinetd                                           [ 確定 ]

 

5 、測(cè)試

[root@localhost weijie]#  tftp 192.168.1.8           // 連接服務(wù)器

tftp>  get 11.c                                           // 獲取文件

tftp> quit                                               // 退出

You have new mail in /var/spool/mail/root

[root@localhost weijie]#  ls                           // 查看文件,已經(jīng)獲取到

1    11.c   1.zip  2.c.bz2  4.c  6.c~  rec000012.c.bz2

1.  1.c   2.c    3.c      5.c  col   res.zip

    

本文名稱:Linux服務(wù)器配置---tftpserver
網(wǎng)頁(yè)網(wǎng)址:http://bm7419.com/article14/jdgige.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)網(wǎng)站制作、商城網(wǎng)站域名注冊(cè)、網(wǎng)站設(shè)計(jì)公司、全網(wǎng)營(yíng)銷推廣、用戶體驗(yàn)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

小程序開(kāi)發(fā)