linux環境搭建之tftp tftpd服務器

一、搭建TFTP服務器

    1)sudo apt-get install xinetd

    2)sudo apt-get install tftp tftpd

    3)建立TFTP配置文件,sudo vi /etc/xinetd.d/tftp配置一下內容,其中server_args 爲服務器目錄,客戶端需要的文件要放到此處,否則找不到

service tftp
{
        socket_type = dgram
        protocol = udp
        wait = yes
        user = root
        server = /usr/sbin/in.tftpd
        server_args = -s /home/jly/tftpboot/ 
        disable = no
        per_source = 11
        cps = 100 2
        flags = IPv4
}

    4)sudo /etc/init.d/xinetd restart  啓動tftp服務器

 

二、ubuntu tftp獲取文件

    1)windows中打開Tftpd64

    2)獲取文件

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章