【教程】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位版 ...
随机推荐
- (原)tensorflow中函数执行完毕,显存不自动释放
转载请注明出处: http://www.cnblogs.com/darkknightzh/p/7608916.html 参考网址: https://stackoverflow.com/question ...
- (原+转)Ubuntu16.04软件中心闪退及wifi消失
转载请注明出处: http://www.cnblogs.com/darkknightzh/p/6321889.html 参考网址: http://blog.csdn.net/felcon/articl ...
- 新安装的ubuntu编辑器问题
转自:https://blog.csdn.net/xiangaichou/article/details/20235041 VI部分 1. 上下左右总是出ABCD,还占行,特难用.这种情况出现在ubu ...
- Tensorflow异常集锦
一.tensorflow checkpoint报错 在调用tf.train.Saver#save时,如果使用的路径是绝对路径,那么保存的checkpoint里面用的就是绝对路径:如果使用的是相对路径, ...
- numpy二分查找
a = np.array([1, 2, 2, 3]) print(np.searchsorted(a, 0)) # 0 print(np.searchsorted(a, 1)) # 0 print(n ...
- iOS 中的静态库与动态库,区别、制作和使用
如果我们有些功能要给别人用,但是又不想公开代码实现,比如高德地图.第三方登录分享等等,这时候我们就要打包成库了.库分静态库和动态库两种: 静态库:以.a 和 .framework为文件后缀名.动态库: ...
- 安装和使用solr
下载Solr:wget http://apache.fayea.com/lucene/solr/6.4.1/solr-6.4.1.tgz解压:tar -zxvf solr-6.4.1.tgz bin/ ...
- [MSP430] 对MSP430单片机__delay_cycles精确延时的说明及改正
在这里, 我来讨论一下关于MSP430单片机使用__delay_cycles延时的问题. IAR for MSP430编译器提供了一个编译器内联的精确延时函数(并非真正的 函数)以提供用户精确延时使用 ...
- Innodb后台线程
1.maste thread 负责将缓冲池中的数据异步刷新到磁盘,保证数据的一致性. 2.IO Thread负责IO请求的回调处理.1.0版本之前有4个IO Thread,负责write.read.i ...
- Android数据库安全解决方案,使用SQLCipher
源码:http://files.cnblogs.com/android100/SQLCipherTest.rar 我们都知道,Android系统内置了SQLite数据库,并且提供了一整套的API用于对 ...