Ubuntu11.04tftp服务的配置

2011-06-17 15:01

以前ubuntu版本上的tftp已经配置很多遍了,详情可以参见:www.mcuos.com/thread-646-1-2.html
但这次在ubuntu11.04上配置还是走了一段弯路!
下面的方案怎么也工作不起来:

1、安装:tftp,tftpd,xinetd

2、配置/etc/xinetd.d/tftp文件(没有可自行创建),内容如下:

service
tftp
{
socket_type
= dgram
protocol = udp
wait = yes
user = root
server =
/usr/sbin/in.tftpd
server_args = -s /var/tftp
-c
disable = no
per_source =
cps
=
flags
= IPv4
}

3、设置工作目录/var/tftp权限

$
sudo /var/tftp

4、重新启动服务

$
sudo /etc/init.d/xinetd restart

5、通过tftp的get和put进行测试:

$
tftp localhost
tftp> get xx
tftp>
put yy

一切看起来好像都很顺利,个就是测试不成功。甚至将iptables关闭了也无济于事!

$
sudo iptables -F

=======================

正确的配置方法如下:

1、安装:tftp-hpa,tftpd-hpa,xinetd

2、配置/etc/default/tftpd-hpa,内容如下:

#
/etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure
-c"

说明:第二项改成你自己定义的tftp工作目录路径;第四项添加一个“-s”参数以便运行执行put操作(--secure等同于-s;
-c等同与--create)

3、设置工作目录/var/tftp权限

$
sudo /var/tftp

4、重新启动服务

$
sudo /etc/init.d/tftpd-hpa restart

5、通过tftp的get和put进行测试:

$
tftp localhost
tftp> get xx
tftp>
put yy

一切工作的又如从前了...

Ubuntu11.04上tftp服务的配置的更多相关文章

  1. ubuntu14.04 server ftp 服务安装配置详解

    ubuntu14.04 server ftp 服务安装配置详解 cheungmine 2016-01-27 http://wiki.ubuntu.com.cn/Vsftpd 0 安装好vsftpd服务 ...

  2. primecoin在ubuntu16.04上部署服务:

    primecoin在ubuntu16.04上部署服务: 一.下载Tomcat,Jdk,primecoin(公司内部文件) 注意Tomcat版本需要高于Jdk的,不然会报错. 二.把它们都解压到你要的安 ...

  3. Ubuntu16.04安装TFTP服务,完成开发板下载文件

    1.安装TFTP服务 $ sudo apt-get install tftp-hpa tftpd-hpa 2.建立传递目录 $ mkdir tftp $ sudo chmod 777 tftp/ -R ...

  4. CentOS7下tftp服务安装配置

    1.软件包安装 root用户或者普通用户使用sudo权限执行如下命令: yum install xinetd tftp tftp-server # root 用户执行 sudo yum install ...

  5. Vnc在Ubuntu14.04上的安装和配置 安装:

    安装: Ubuntu14.04 : sudo apt-get install vnc4server : sudo apt-get install xrdp iPad : 安装 vnc viewer 或 ...

  6. ubuntu16.04上Eclipse和hadoop配置

    1.安装Eclipse 1>下载Eclipse 可以以多种方式下载Eclipse,下面介绍直接从eplise官网下载和从中国镜像站点下载,下载把eclipse上传到Hadoop环境中. 第一种方 ...

  7. ubuntu 10.04 下 samba 服务的配置

    1. 安装 $ sudo apt-get install samba $ sudo apt-get install samba-common $ sudo apt-get install samb . ...

  8. Linux 上SSH 服务的配置和管理

    0.前期准备:清空防火墙,关闭SELinux. [root@localhost ~]# iptables -F #清空防火墙 [root@localhost ~]# /etc/init.d/iptab ...

  9. Ubuntu下配置tftp服务

    Ubuntu下配置tftp服务 1.安装TFTP软件 sudo apt-get install tftp-hpa tftpd-hpa tftp-hpa是客户端,tftpd-hpa是服务器端 2.建立t ...

随机推荐

  1. PHP remove,empty和detach区别

    empty: 把所有段落的子元素(包括文本节点)删除 HTML 代码: <p>Hello, <span>Person</span> <a href=" ...

  2. IEHelper - Internet Explorer Helper Class

    http://www.codeproject.com/Articles/4411/IEHelper-Internet-Explorer-Helper-Class Discussions (81) IE ...

  3. misc_register、 register_chrdev 的区别总结

    参考: http://longer.spaces.eepw.com.cn/articles/article/item/60415 http://imganquan.org/blog/?p=350 网上 ...

  4. Form 重置记录编号(app_record.for_all_record)

    A block lines has item line_number. When a record is deleted, line_number must be renumbered. step 1 ...

  5. Android开发之ADT中无Annotation Processin的解决办法

    使用ButterKnife的时候,进入ADT中设置的时候发现在Java Compiler展开后无Annotation Processin 解决办法: 安装插件:Juno - http://downlo ...

  6. bzoj1914

    这道题用转化补集的思想一下就很简单了考虑不包括原点的三角形,显然对于一个点,它与原点构成的直线在这条直线同侧的任意两点和这个点构成的三角形一定不是黄金三角形为了避免重复我们只考虑直线上方的两点然后我们 ...

  7. Java C# MD5 加密串一致性

    Java C# MD5 加密串一致性   Java public final static String md5(String s) { char hexDigits[] = { '0', '1',  ...

  8. c++/c字符串操作汇集

    1. 字符串替换 void string_replace(std::string &strBig, const std::string &strsrc, const std::stri ...

  9. Jersey Restful部署到Tomcat注意事项

    新的Jersey版本,支持Servlet 3.x,与Servlet 2.x不一样 实现自定义的Application,使用@ApplicationPath("/")标注 @Appl ...

  10. The Moving Points

    Problem Description There are N points in total. Every point moves in certain direction and certain ...