ubuntu13.10下到tftp的配置与使用

本文详细介绍如何在Linux系统上安装TFTP服务,并提供具体的配置步骤。包括安装所需的软件包、配置服务参数以及如何手动控制服务的状态。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

由于与红帽不同不要使用这样到方法安装sudo apt-get install tftpd tftp xinetd,请使用以下到方法安装


1、安装软件包

      sudo apt-get install tftpd-hpa tftp-hpa

      其中tftpd-hpa是服务程序,tftp-hpa是客户端。


2、修改配置文件

      vim /etc/default/tftpd-hpa

      # /etc/default/tftpd-hpa

      TFTP_USERNAME="tftp"
      TFTP_DIRECTORY="/home/xxx/tftpboot"
      TFTP_ADDRESS="0.0.0.0:69"
      TFTP_OPTIONS="-l -c -s"

      前三条不解释,一看就明白,TFTP_OPTIONS的三个选项的解释如下:

      -l, --listen
              Run the server in standalone (listen) mode, rather than run from inetd.  In listen mode, the  --timeout  option  is  ignored,  and  the --address option can be used to specify a specific local address or port to listen to.

      --create, -c
              Allow new files to be created.  By default, tftpd will only allow upload of files that already exist.  Files are created  with  default permissions allowing anyone to read or write them, unless the --permissive or --umask options are specified.

      --secure, -s
              Change  root  directory  on startup.  This means the remote host does not need to pass along the directory as part of the transfer, and may add security.  When --secure is specified, exactly one directory should be specified on the command line.  The use of  this  option is recommended for security as well as compatibility with some boot ROMs which cannot be easily made to include a directory name in its request.


  3.系统默认tftp的服务是随机启动的,如需手动开启、关闭、重启tftp服务,分别执行以下命令即可:

             sudo service tftpd-hpa start

             sudo service tftpd-hpa stop

             sudo service tftpd-hpa restart
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值