【教程】ubuntu中配置tftp
1.
安装
tftpd
(
tftp
服务器)、
tftp
(
tftp
客户端)以及
xinetd
(超级服务器)
1.
安装
tftpd
(
tftp
服务器)、
tftp
(
tftp
客户端)以及
xinetd
(超级服务器)
1.
安装
tftpd
(
tftp
服务器)、
tftp
(
tftp
客户端)以及
xinetd
(超级服务器)
1.
安装
tftpd
(
tftp
服务器)、
tftp
(
tftp
客户端)以及
xinetd
(超级服务器)
Preface
今天在 Ubuntu 12.04LTS下配置 tftp时走了些弯路,囧,记录下
下面的方案怎么也工作不起来
1.安装tftpd(tftp服务器)、tftp(tftp客户端)以及xinetd(超级服务器)
#sudo apt-get install tftpd tftp xinetd
2.建立配置文件,创建/etc/xinetd.d/tftp文件,并在文件中添加如下内容
mystery@lcw:/etc/xinetd.d$ sudo vim tftp
1 service tftp
2 {
3 disable = no
4 socket_type = dgram
5 protocol = udp
6 wait = yes
7 user = mystery
8 server =/usr/sbin/in.tftp
9 server_args = -s /home/mystery/tftp
10 source = 11
11 cps = 100 2
12 flags = IPv4
13 }
3.建立配置文件,创建/etc/xinetd.d/tftp文件,并更改权限
mystery@lcw:~$ sudo mkdir /home/mystery/tftp
mystery@lcw:~$ sudo chmod -R 777 /home/mystery/tftp
mystery@lcw:~$ sudo chown -R mystery /home/mystery/tftp
mystery@lcw:~$
4. 通过xinetd超级服务器启动tftpd
在这之前,先重启下进程
mystery@lcw:/etc$ sudo reload xinetd
然后重启服务
mystery@lcw:/etc/default$ sudo service xinetd restart
xinetd stop/waiting
xinetd start/running, process 3350
mystery@lcw:/etc/default$
5. 测试
tftp> status
Connected to 192.168.123.24.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> get test
Transfer timed out.
出现 Transfer timed out
然后就是怎么测试都不成功!
正确的配置方法
1、安装:tftp-hpa,tftpd-hpa,xinetd
mystery@lcw:sudo apt-get install tftp-hpa tftpd-hpa xinetd
2、配置/etc/default/tftpd-hpa
1 # /etc/default/tftpd-hpa
2
3 TFTP_USERNAME="tftp"
4 TFTP_DIRECTORY="/home/mystery/tftp"
5 TFTP_ADDRESS="0.0.0.0:69"
6 TFTP_OPTIONS="--secure -c"
说明:第二项改成你自己定义的tftp工作目录路径;第四项添加一个“-s”参数以便运行执行put操作(--secure等同于-s; -c等同与--create)
3、设置工作目录/home/mystery/tftp权限
mystery@lcw:~$ sudo chmod -R 777 /home/mystery/tftp
mystery@lcw:~$ sudo chown -R mystery /home/mystery/tftp
mystery@lcw:~$
4、重新启动服务
mystery@lcw:~$ sudo service tftpd-hpa restart
tftpd-hpa stop/waiting
tftpd-hpa start/running, process 5540
5、通过tftp的get和put进行测试
mystery@lcw:~$ tftp localhost
tftp> get test
tftp> put minicom.log
tftp> q
mystery@lcw:~$ ls /home/mystery/tftp/
minicom.log test
mystery@lcw:~$
OK,TFTP又开始正常工作,囧……
【教程】ubuntu中配置tftp的更多相关文章
- Ubuntu下配置tftp服务
Ubuntu下配置tftp服务 1.安装TFTP软件 sudo apt-get install tftp-hpa tftpd-hpa tftp-hpa是客户端,tftpd-hpa是服务器端 2.建立t ...
- Ubuntu安装配置TFTP服务
tftpd-hpa 是一个功能增强的TFTP服务器.它提供了很多TFTP的增强功能,它已经被移植到大多数的现代UNIX系统. 1.安装 sudo apt-get install tftpd-hpa t ...
- Ubuntu中配置Java环境变量时,出现command not found问题解决记录
百度出Ubuntu中配置Java环境变量时,在利用sudo gedit /etc/profile 对profile编辑后, 在terminal中输入 sudo source /etc/profile, ...
- 在ubuntu中配置深度学习python图片分类实验环境
1 安装numpy,scipy, matplotlib, sudo apt-get install python-numpy sudo apt-get install python-scipy sud ...
- ubuntu中配置ip地址和上网配置
ubuntu中的ip地址配置: 基于NAT模式: 如果能正常连接ip,但不能ping动www.baidu.com的话,我们需要在配置文件中配置主机上网的DNS地址,如下: 如果上面图片上的DNS se ...
- Ubuntu中配置Tomcat与Eclipse整合
Apache Tomcat 作为web服务器已经广泛用于Java Servlets 和 JSP (Java Server Pages) 开发. 环境:Ubuntu10.10 java环境的配置见另一篇 ...
- Ubuntu中配置Python虚拟环境Virtualenv
Ubuntu版本为18.04 Virtualenv介绍 在开发Python应用程序的时候,系统安装的Python3只有一个版本:3.4.所有第三方的包都会被pip安装到Python3的site-pac ...
- Ubuntu中配置Thunderbird登录qq邮箱
1.打开thunderbird 2.开启QQ邮箱pop功能 登录网页版QQ邮箱(email.qq.com) 设置---->>账户---->> 3.配置thunderbird 注 ...
- ubuntu中配置jdk1.8
方法/步骤 1 首先,百度搜索jdk,选择第一个,网站是Oracle Jdk.点击进去 步骤阅读 2 点击Download,到官网下载linux版本的jdk.选择自己对应的操作系统及32或64位版 ...
随机推荐
- 用dockerfile构建基于centos系统的jar包的镜像
实际示例: [root@master01 home-dataline]# ls dataline.jar Dockerfile jdk-8u181-linux-x64.tar.gz [root@mas ...
- Swift3 substring几种常用用法
举例: " let length = str.characters.count //截取前四位 )) //截取后2位(两种方法) )) )) //截取中间4位,从第2位开始(二种方法) le ...
- HDUOJ----Coin Change
Coin Change Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total ...
- iOS 播放远程网络音乐的核心技术点
一.前言 这两天做了个小项目涉及到了远程音乐播放,因为第一次做这种音乐项目,边查资料边做,其中涉及到主要技术点有: 如何播放远程网络音乐 如何切换当前正在播放中的音乐资源 如何监听音乐播放的各种状态( ...
- 【java】switch case支持的6种数据类型
switch表达式后面的数据类型只能是byte,short,char,int四种整形类型,枚举类型和java.lang.String类型(从java 7才允许),不能是boolean类型. 在网上看到 ...
- Linux安装ElasticSearch-2.2.0-分词器插件(Mmseg)
1.在gitpub上搜索elasticsearch-analysis,能够看到所有elasticsearch的分词器: 2.安装Mmseg分词器:https://github.com/medcl/el ...
- TOP字句加SQL变量的相关问题
SQL Server数据库中的变量可以加载TOP字句之后,下文将对TOP字句加SQL变量的相关问题进行讨论,供您参考,希望对您学习SQL数据库有所帮助. SQL Server2005开始,TOP子句后 ...
- OpenCV 学习笔记03 drawContours函数
opencv-python 4.0.1 轮廓的绘制或填充. cv2.drawContours(image, contours, contourIdx, color[, thickness[, li ...
- 31天重构学习笔记(java版本)
准备下周分享会的内容,无意间看到.net版本的重构31天,花了两个小时看了下,可以看成是Martin Fowler<重构>的精简版 原文地址:http://www.lostechies.c ...
- Android开发实现计算器的例子
例子 代码如下 复制代码 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" a ...