ubuntu 9.04 下tftp服務配置
ubuntu9.04下tftp服務配置
一、使用tftp-hpa tftpd-hpa
1、安裝tftp-hpa、tftpd-hpa、xinetd
以root權限運行
#apt-get install tftp-hpa tftpd-hpa xinet
2、修改/etc/default/tftpd-hpa
將
RUN_DAEMON="no"
改爲:
RUN_DAEMON="yes"
3、重新啓動xinetd服務
#/etc/init.d/xinetd restart
4、啓動tftpd-hpa
#/etc/init.d/tftpd-hpa start
5、測試
$sudo vim /var/lib/tftpboot/test
/var/lib/tftpboot/test
保存退出
$tftp localhost
tftp> get test
看看文件內容是否爭取。
二、使用tftp tftpd
1、安裝tftp、tftpd、xinetd
sudo apt-get install tftp tftpd xinetd
2、修改 /etc/inetd.conf
將tftp一行最後的srv/tftp 改爲 /var/lib/tftpboot
3、重新啓動 xinetd
sudo /etc/init.d/xinetd restart
4、測試
tftp localhost
tftp>get test