国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Ftp服務器 > 正文

Ubuntu 8.04下搭建tftp開發davinci平臺

2024-09-09 20:58:39
字體:
來源:轉載
供稿:網友
 

1、首先安裝tftp和tftpd,前者是客戶端,后者是服務器。因為tftp是要inetd來控制的,而Ubuntu類的系統,默認是沒有安裝inetd的,安裝一下。(我第一次失敗了就是因為沒有安裝正確的inetd)

#apt-get install tftp tftpd

#apt-get install netkit-inetd

2、在/目錄下建一個tftpboot, 把屬性改成777。

#cd /

#mkdir tftpboot

#chmod 777 tftpboot

3、修改/etc/inetd.conf

#emacs /etc/inetd.conf

tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot

#:INTERNAL: Internal services

#echo stream tcp nowait root internal

#echo dgram udp wait root internal

#chargen stream tcp nowait root internal

#chargen dgram udp wait root internal

#discard stream tcp nowait root internal

#discard dgram udp wait root internal

#daytime stream tcp nowait root internal

#daytime dgram udp wait root internal

#time stream tcp nowait root internal

#time dgram udp wait root internal

#tftp dgram udp wait nobody /usr/sbin/tcpd/usr/sbin/in.tftpd/tftpboot

4、重新加載inetd進程

#/etc/init.d/inetd reload

5、測試tftpd服務是否成功

tftp localhost

tftp> put mydoc.tar.gz

tftp> put test.log

tftp> get test.log

tftp> get mydoc.tar.gz

tftp>

上述表明在主機上測試tftp成功,在DM6446板子上,以root登錄,使用busybox附帶的tftp客戶端上傳/下載文件:

root@DVS6446:/tftp -r thttpd.conf -g 192.168.1.110

竟然出錯,老是time out!查找原因,最后還是歸結到防火墻了。防火墻本是個好東西,但好東西在特定的環境下往往成為壞東西,關閉防火墻之后就順利實現tftp上傳/下載文件了。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 灵寿县| 临西县| 桦甸市| 台湾省| 东乡| 上林县| 康平县| 榆社县| 汉川市| 达州市| 高雄市| 原平市| 汽车| 万全县| 出国| 德阳市| 南充市| 建水县| 海南省| 巴塘县| 嘉鱼县| 文登市| 安国市| 上犹县| 连南| 沙洋县| 中超| 抚宁县| 克东县| 绵竹市| 三穗县| 德令哈市| 绍兴县| 兴山县| 永德县| 江口县| 金溪县| 高雄市| 东明县| 榆林市| 临邑县|