Ubuntu tftp服務的步驟配置

2021-08-14 10:35:08 字數 1061 閱讀 6839

配置ubuntu tftp服務的步驟:

ubuntu tftp

(服務端),

tftp

(客戶端),

xinetd

sudo apt-get install tftpd tftp xinetd

2、建立配置檔案

在/etc/xinetd.d/下建立乙個配置檔案

tftp

sudo vi tftp

在檔案中輸入以下內容:

service tftp

儲存退出

3、建立

ubuntu tftp

sudo mkdir /tftpboot

sudo chmod 777 /tftpboot -r

4、重新啟動服務

sudo /etc/init.d/xinetd restart

至此ubuntu tftp服務已經安裝完成了,下面可以對其進行一下測試。(假設在當前目錄下有乙個測試檔案

test.txt

)$tftp 127.0.0.1                     

tftp> put test.txt

sent 1018 bytes in 0.0 seconds

tftp> get test.txt

received 1018 bytes in 0.1 seconds

tftp> quit

通過get命令,可以把當前目錄下的

test.txt

檔案,通過

ubuntu tftp

上傳到它的服務檔案目錄。這時,在

/tftpboot

下面會出現

test.txt

檔案。通過

put命令,可以從

/tftpboot下,

test.txt

檔案。這樣就驗證了

ubuntu tftp

quit

命令退出。嚴格按照以上步驟配置

ubuntu tftp

服務,一般都可以成功。如果出現無法

get或者

put的時候,可以檢視一下防火牆是否關閉。

ubuntu tftp服務的配置

ubuntu tftp服務的配置步驟 sudo apt get install tftpd tftp xinetd 2 建立配置檔案 在 etc xinetd.d 下建立乙個配置檔案tftp sudo vim tftp 在檔案中輸入以下內容 service tftp 儲存退出 sudo mkdir ...

Ubuntu tftp伺服器的配置

1 安裝tftp hpa,tftpd hpa,xinetd sudo apt get install tftp hpa tftpd hpa,xinetd root ubuntu apt get install tftp hpa tftpd hpa,xinetd reading package lis...

ubuntu tftp伺服器配置

yelei ubuntu sudo apt get install tftpd tftp xinetd 2 建立配置檔案 在 etc xinetd.d 下建立乙個配置檔案tftp yelei ubuntu etc xinetd.d sudo gedit tftp 在檔案中輸入 以下內容 servic...