sudo apt-get install tftp-hpa tftpd-hpa
sudo apt-get install xinetd
建立存放的伺服器內容的資料夾並給予許可權
mkdir /home/zwz/linux/tftpboot
chmod 777 /home/zwz/linux/tftpboot
記住這個資料夾路徑,後續多次使用。
進入配置資料夾
cd /etc/xinetd.d
建立tftp檔案
sudo vim tftp
tftp配置內容如下
server tftp
啟動tftp服務
sudo service tftpd-hpa start
開啟/etc/default/tftpd-hpa,修改伺服器資料夾位置與前面建立的資料夾一致。
# /etc/default/tftpd-hpa
tftp_username="tftp"
tftp_directory="/home/zwz/linux/tftpboot"
tftp_address=":69"
tftp_options="-l -c -s"
sudo service tftpd-hpa restart
1、拷貝檔案到tftpboot資料夾(例如zimage)
2、給映象許可權chmod 777 zimage
3、客戶端使用對應的tftp命令嘗試即可。
Linux下配置TFTP伺服器
tftp trivial file transfer protocol,簡單檔案傳輸協議 是tcp ip協議族中的乙個用來在客戶機與伺服器之間進行簡單檔案傳輸的協議,提供不複雜 開銷不大的檔案傳輸服務。埠號為69。配置步驟 1 確認網路暢通 2 安裝tftp hpa客戶端 tftpd hpa服務程式...
ubuntu配置TFTP伺服器
1 安裝相關軟體包 ubuntu tftp 服務端 tftp 客戶端 xinetd sudo apt get install tftpd tftp xinetd 2 建立配置檔案 在 etc xinetd.d 下建立乙個配置檔案tftp sudo vi tftp 在檔案中輸入以下內容 service...
Ubuntu配置TFTP伺服器
tftp trivial file transfer protocol,簡單檔案傳輸協議 是tcp ip協議族中的乙個用來在客戶機與伺服器之間進行簡單檔案傳輸的協議,提供不複雜 開銷不大的檔案傳輸服務。埠號為69。tftp基於udp協議而實現,但是我們也不能確定有些tftp協議是基於其它傳輸協議完成...