這樣tftp伺服器就啟動了,下面可以做乙個測試
4. cd /tftpboot
touch test
建立乙個檔案
5. cd /home/usrname
登入另乙個目錄
6. tftp 192.168.0.59
換成自己的ip
> get /tftpboot/test
如果能夠得到檔案,那麼就成功了。
ps:不要忘了 sudo apt-get install xinetd
sudo apt-get install netkit-inetd
關於不能上傳(put)的解決
開啟目錄 /etc/xinetd.d/
新建檔案tftp
tftp內容:
service tftp
重新啟動服務:
sudo /etc/init.d/xinetd restart
sudo in.tftpd -l /tftpboot
安裝過程中出現的問題及原因
現象一:
tftp> get test.log
transfer timed out.
原因:tftpd服務沒有啟動
現象二:
tftp> get test.log
error code 2: only absolute filenames allowed
原因:在/etc/xinetd.d/tftpd中設定的server_args為/etc/default/tftpd-hpa
cat /etc/default/tftpd-hpa
#defaults for tftpd-hpa
run_daemon="no"
options="-s /home/tftpd -c -p -u 077 -u tftpd"
設定的時候只要將server_args=改為你自己設定的伺服器資料夾就行了
現象三:
tftp> put ex070416.log
error code 1: file not found
原因:指定的檔案不存在;或tftpd啟動引數中沒有指定-c選項,允許上傳檔案。
ubuntu下安裝tftp服務
1 安裝相關軟體包 apt get install tftpd 服務端 apt get install tftp 客戶端 apt get install xinetd 2 建立配置檔案 cd etc xinetd.d vi tftp 輸入service tftp 存檔退出 3 建立tftp服務檔案目...
Ubuntu下安裝配置tftp服務
在向大家詳細介紹tftp之前,首先讓大家了解下ubuntu tftp,然後全面介紹ubuntu tftp,希望對大家有用。ubuntu 團隊對它的使用者公開的承諾 ubuntu 永遠免費 並且對於 企業版本 沒有任何額外的費用,在同樣的自由團隊上,將最好的工作成果帶給每乙個人。配置ubuntu tf...
ubuntu安裝tftp服務
1.安裝tftp server sudo apt get install tftpd hpa sudo apt get install tftp hpa 如果不需要客戶端可以不安裝 tftp hpa 是客戶端 tftpd hpa 是伺服器端 2.配置tftp伺服器 sudo gedit etc de...