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