Ubuntu 11.04下安装 TFTP Server

Linux大全评论495 views阅读模式

安装来新的Ubuntu 11.04版本,发现跟之前版本Ubuntu安装 tftp server 不一样了。但基本差别不大。

步骤如下:

1. 执行 sudo apt-get install xinetd

2. 执行 sudo apt-get install tftp-hpa

3.执行 vi /etc/default/tftpd-hpa

修改 tftpboot 路径为你自己设置的tftpboot路径。我的是在根目录下面。

修改后如下:

  1 # /etc/default/tftpd-hpa
  2
  3 TFTP_USERNAME="tftp"
  4 TFTP_DIRECTORY="/tftpboot"
  5 TFTP_ADDRESS="127.0.0.1:69"
  6 TFTP_OPTIONS="--secure"

4. 执行 sudo /etc/init.d/tftpd-hpa start

结果出现如下错误:

Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service tftpd-hpa start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start tftpd-hpa
原来新版本下不能用此方式启动 tftp server了,【Linux公社 www.linuxidc.com 】要采用如下指令:

service /etc/init.d/tftpd-hpa start

5.执行 sudo service /etc/init.d/tftpd-hpa start

显示如下提示信息:

tftpd-hpa start/running, process 17318
运行成功。

企鹅博客
  • 本文由 发表于 2019年9月23日 07:33:32
  • 转载请务必保留本文链接:https://www.qieseo.com/142099.html

发表评论