ubuntu tftp服務器配置

1、安裝相關軟件包:Ubuntu tftp(服務端),tftp(客戶端),xinetd
           yelei@ubuntu: sudo apt-get install tftpd tftp xinetd
 
2、建立配置文件
      在/etc/xinetd.d/下建立一個配置文件tftp
          yelei@ubuntu:/etc/xinetd.d$ sudo gedit tftp
     在文件中輸入 以下內容:
        service tftp
      {
             socket_type = dgram
             protocol = udp
             wait = yes
             user = root
             server = /usr/sbin/in.tftpd
             server_args = -s /tftpboot
             disable = no
             per_source = 11
             cps = 100 2
             flags = IPv4
      }

保存退出
 
3、建立Ubuntu tftp服務文件目錄(上傳文件與下載文件的位置),並且更改其權限
        yelei@ubuntu: sudo mkdir /tftpboot
       yelei@ubuntu: sudo chmod 777 -R tftpboot
 
4、重新啓動服務
    yelei@ubuntu:/etc/xinetd.d$ sudo /etc/init.d/xinetd restart
         * Stopping internet superserver xinetd                                  [ OK ]
         * Starting internet superserver xinetd                                  [ OK ]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章