apt-get install tftpd
編輯inetd.conf
vi /etc/inetd.conf
新增輸入
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
新增資料夾/tftpboot
mkdir /tftpboot
設定權限
chmod 777 /tftpboot
重新啟動inetd
/etc/init.d/inetd restart
註:/tftpboot可以以照自己喜歡的路徑來設定
註:prot為69類型為UDP
此外有另外一種狀況
安裝tftp時會同時安裝xinetd
這時候上面的設定都會找不到
此時就要在
/etc/xinetd.d下建立tftp的文件檔
並輸入資料
vi /etc/xinetd.d內容為
# 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 port = 69 wait = yes user = root server = /usr/sbin/in.tftpd server_args = /tftpboot disable = no }
0 意見:
張貼留言