ubuntu tftp 配置
1:sudo apt-get install tftp tftpd openbsd-inetd
特别指出很多文章里用的是netkit-inetd,但是实际下载时发现
这个软件是下不到的,特改用openbsd-inetd,实验效果不错。
2:在根目录下创建文件夹 tftpboot
cd /
sudo mkdir tftpboot      建立文件夹
sudo chmod 777 tftpboot  更改文件夹权限
3: sudo gedit /etc/inetd.conf  修改成如下样子
tftp  dgram    udp    wait    nobody    /usr/sbin/tcpd    
/usr/sbin/in.tftpd   /tftpboot
4: sudo gedit /etc/xinetd.d/tftp  修改成如下样子(如果没有tftp文件就创建它)
service tftp
{
disable         =no
socket_type     =dgram
protocol        =udp
wait            =yes
user            =root
server          =/usr/sbin/in.tftpd
server_args     =-s /tftpboot -c 
source          = 11
cps             = 100 2
}
5: sudo gedit /etc/default/tftpd-hpa  修改成如下样子
RUN_DAEMON="no"
OPTIONS="-s /tftpboot -c -p -U tftpd"
6:sudo /etc/init.d/openbsd-inetd reload   
sudo /etc/init.d/xinetd restart
sudo in.tftpd -l /tftpboot
7: 在tftpboot文件夹下新建测试文件 aaa
cd /tftpboot 
sudo touch  aaa
sudo chmod  777  aaa
9: 开始测试tftp服务
cd  /home
tftp  192.168.1.111
get  /tftpboot/aaa
如果没有出现错误代码且在home目录下出现aaa文件则证明tftp
服务建立成功
注意: 1:如果出现permission denied 错误  则是操作者权限不够,
需要提升权限
su  root
输入密码后就可以正常进行tftp传输操作了
2:如果出现Access violation错误 则是文件权限没有解开,
将要操作的文件操作权限全解开就可以了
chmod 777 文件名
ubuntu tftp 配置的更多相关文章
- Ubuntu下配置tftp服务
		Ubuntu下配置tftp服务 1.安装TFTP软件 sudo apt-get install tftp-hpa tftpd-hpa tftp-hpa是客户端,tftpd-hpa是服务器端 2.建立t ... 
- 配置ubuntu - tftp server服务器步骤
		配置Ubuntu tftp服务的步骤: 1.安装相关软件包:Ubuntu tftp(服务端),tftp(客户端),xinetd sudo apt-get install tftpd tftp xine ... 
- linux tftp配置 (Ubuntu18.04)
		安装tftp客户端和服务器sudo apt-get install tftp-hpa tftpd-hpa xinetdtftp-hpa是客户端tftpd-hpa是服务器 配置文件 sudo vim / ... 
- 《一个操作系统的实现》 ubuntu系统环境配置
		<一个操作系统的实现> ubuntu系统环境配置 电脑之前已经安装了gcc. 一.nasm安装:sudo apt-get install nasm或官网下载http://sourcefor ... 
- Ubuntu中配置Java环境变量时,出现command not found问题解决记录
		百度出Ubuntu中配置Java环境变量时,在利用sudo gedit /etc/profile 对profile编辑后, 在terminal中输入 sudo source /etc/profile, ... 
- Ubuntu下配置python完成爬虫任务(笔记一)
		Ubuntu下配置python完成爬虫任务(笔记一) 目标: 作为一个.NET汪,是时候去学习一下Linux下的操作了.为此选择了python来边学习Linux,边学python,熟能生巧嘛. 前期目 ... 
- SecureCRT连接虚拟机(ubuntu)配置
		使用SecureCRT连接虚拟机(ubuntu)配置记录 这种配置方法,可以非常方便的操作虚拟机里的Linux系统,且让VMware在后台运行,因为有时候我直接在虚拟机里操作会稍微卡顿,或者切换速 ... 
- 转[开发环境配置]在Ubuntu下配置舒服的Python开发环境
		在Ubuntu下配置舒服的Python开发环境 Ubuntu 提供了一个良好的 Python 开发环境,但如果想使我们的开发效率最大化,还需要进行很多定制化的安装和配置.下面的是我们团队开发人员推荐的 ... 
- Ubuntu下配置L2TP
		发现PPTP已经不可用了,不知是不是又被墙了.只能尝试L2TP了. Ubuntu可视化配置界面network-manager默认是没有L2TP配置选项的,需要安装第三方插件软件: sudo apt-a ... 
随机推荐
- jquery插件开发通用框架
			2017-07-24 更新:增加单例模式. jquery插件开发框架代码: /* * 插件编写说明: * 1.插件命名:jquery.[插件名].js,如jquery.plugin.js * 2.对象 ... 
- 〖Linux〗build ssh for Arm
			1. 交叉编译环境: export ARCH=arm export SUBARCH=arm export PATH=/opt/FriendlyARM/toolschain//bin:$PATH exp ... 
- python学习笔记之函数(方法)
			def func(x): print 'x is', x x = 2 print 'Changed local x to', x x = 50 func(x) print 'x is still', ... 
- spyder python 相关
			1.python开发集成工具Spyder中,如何设置变量成员提示和代码补全呢? 答: pip install rope,安装好rope 就可以了 2.最常用的是:tap的制动补全 (IPython c ... 
- mysql高效索引之覆盖索引
			概念 如果索引包含所有满足查询需要的数据的索引成为覆盖索引(Covering Index),也就是平时所说的不需要回表操作 判断标准 使用explain,可以通过输出的extra列来判断,对于一个索引 ... 
- openvpn服务端一键生成windows,macos客户端配置文件
			#!/bin/bash #获取参数 while getopts "n:" opt; do case $opt in n) client_name=$OPTARG ;; \?) ;; ... 
- get请求乱码情况
			编写一个RegistServlet处理用户的Get请求数据 public void doGet(HttpServletRequest request, HttpServletResponse resp ... 
- Exception in thread main java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFacto
			报错: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/Log ... 
- HDUOJ---1133(卡特兰数扩展)Buy the Ticket
			Buy the Ticket Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)To ... 
- pythonl练习笔记——threading线程中的事件Event
			1 事件Event 使用方法:e = threading.Event() Event对象主要用于线程间通信,确切地说是用于主线程控制其他线程的执行. Event事件提供了三个方法:wait等待.cle ... 
