tftp服務(wù)器搭建(基于itop4412)
1在pc機(jī)的ubuntu上安裝xinetd tftp tftpd
apt-get install xinetd
apt-get install tftp tftpd
2在pc機(jī)的ubuntu上安裝配置tftp,按照下圖對(duì)齊
vim /etc/xinetd.d/tftp
image.png
3 tftp文件中的/var/tftpboot是服務(wù)器的目錄
– 新建tftp服務(wù)器目錄mkdir /var/tftpboot
– 修改權(quán)限為777
– 重啟xinetd服務(wù)sudo /etc/init.d/xinetd restart
4 TFTP服務(wù)器測試 本機(jī)測試
– 在/var/tftpboot 下面建立一個(gè)文件test,輸入任意內(nèi)容
– 啟動(dòng)另一個(gè)終端
– 輸入命令tftp 127.0.0.1
– 輸入get test
– 輸入q可以退出
– 退出后,使用ls命令可以發(fā)現(xiàn)當(dāng)前目錄下有test文件,如果這個(gè)文件和服
務(wù)器中的test文件內(nèi)容一模一樣,表明服務(wù)器搭建成功
5 TFTP服務(wù)器測試 開發(fā)板測試
ubuntu的ip是192.168.20.250
先ping通
然后使用
tftp -g -l test -r test 192.168.20.250