補覺鳴詩

學海無涯


  • 首頁

  • archive

  • 關於我

  • 搜尋

centos 7 設定 tftp server

時間: 2018-08-31   |   分類: Centos 7   | 字數: 146 字 | 閱讀: 1分鐘 | 閱讀次數:

TFTP server can be installed using following command, where xinetd is necessary.

#安裝 tftp server
yum install xinetd tftp-server
#編輯設定檔
nano  /etc/xinetd.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
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
#-c allow client upload file
#-s use this path to as server directory
        server_args             = -c -s  /var/tftp
# disable = no  不關閉 tftp server
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
systemctl restart xinetd tftp
systemctl enable xinetd tftp
參考資料
https://linux.die.net/man/8/tftpd
comments powered by Disqus >
Owan

Owan

愛貓如癡

131 日誌
29 分類
37 標籤
GitHub
© 2010 - 2022 補覺鳴詩
Powered by - Hugo v0.96.0 / Theme by - NexT
0%