apt-get install tftp-hpa tftpd-hpa
如果此時提示無法定位軟體包,需要輸入以下指令更新源(需聯網):
apt-get update
mkdir /tftpboot
chmod 0777 /tftpboot
cd /tftpboot
touch test.txt
vi /etc/default/tftpd-hpa
//開啟檔案後修改相應的引數
tftp_username="tftp"
tftp_directory="/tftpboot"
tftp_address="0.0.0.0:69"
tftp_options="-l -c -s"
service tftpd-hpa restart
每次修改完都需要重啟服務
最後進入/home目錄和/tftpboot目錄檢視是否測試成功cd /home
touch test1.txt //在/home下新建乙個文件
tftp 127.0.0.1 //輸入本機ip進行測試
tftp>get test.txt //獲取tftp工作目錄下的文件
tftp>put test1.txt //傳輸/home下的文件
tftp>q //退出
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...
Ubuntu中安裝tftp服務的方法
檢查tftp是否已經安裝 netstat a grep tftp 若出現 udp 0 0 tftp 則說明已經安裝,否則沒有。1 安裝相關軟體包 apt get install tftpd 服務端 apt get install tftp 客戶端 apt get install xinetd 2 建...
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服務檔案目...