【教程】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位版 ...
随机推荐
- ios中键盘处理源码
1:先分别设置各个文本框的键盘类型(inputview)-->在特定键盘中textediting中禁用输入. 2:然后递归绑定各个键盘的工具条(inputaccessview).并且个各个控 ...
- maven 下载 源码和javadoc命令(转)
转自:http://blog.csdn.net/topwqp/article/details/8902863 maven 下载 源码和javadoc命令 目录(?)[+] Maven命令下载源码和ja ...
- ActiveMQ持久化及测试(转)
转:http://blog.csdn.net/xyw_blog/article/details/9128219 ActiveMQ持久化 消息持久性对于可靠消息传递来说应该是一种比较好的方法,有了消息持 ...
- 安装samba脚本
Ubuntu_samba.sh #!/bin/sh echo "Ubuntu 14.04 文件服务器--samba的安装和配置" echo "更新源列表" su ...
- React(0.13) 定义一个使用动画
<!DOCTYPE html> <html> <head> <title>React JS</title> <script src=& ...
- MySQL 插入emoji 表情
create table doctorUserInfoMation ( id int not null auto_increment comment '系统ID', userId ) comment ...
- Linux MySQL 4G内存my.cnf配置表(转)
# The following options will be passed to all MySQL clients[client]character-set-server = utf8 #### ...
- Android----输入模式设置
InputType的参数: 用法:((EditText)findViewById(R.id.edit)).setInputType(InputType.*); int TYPE_CLASS_DATET ...
- 【Struts2】Struts2与Spring整合后,如何指定Action为多例模式
Strust2默认是多例的,但是Spring默认是单例的,在进行Spring+Strust2整合的时候,就需要把Spring管理的action指定为多例模式,只需要在action上面加上@Scope( ...
- win7 git 安装
下载git: https://git-scm.com/download/win 二.Git安装 去官网下载完后一路下一步完成安装,如下图: 安装完后先在系统环境变量中看下是否配置 然后在桌面右 ...