ubuntu 9.04 下tftp服务配置

ubuntu 9.04 下tftp服务配置

2009-9-29 21:31:24    收藏  |  打印  | 投票  |  评论  |  阅读  ◇字体:[  
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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章