当前位置:网站首页>Construction and test of TFTP server under unbuntu (Debian)
Construction and test of TFTP server under unbuntu (Debian)
2022-07-03 09:29:00 【Monty Fried Bun】
According to some online tutorials , I tested the following , Can be transferred successfully
One 、 Download and install
Download and install tftp And daemons :
sudo apt-get install tftp-hpa tftpd-hpa xinetd
Two 、 establish tftp Folder
Generally, the root directory is created :
And change the permission so that everyone can access and modify
sudo mkdir tftpboot
sudo chmod 777 tftpboot
3、 ... and 、 Modify the configuration file
then , Entry directory /etc/xinetd.d/, And create a new file in it tftp, Add the specified content to tftp In file :
sudo vim /etc/xinetd.d/tftp
Add the following :
service tftp
{
disable = no 138
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
per_source = 11
cps = 100 2
}
server_args It's set up tftp Catalog .
Modify another configuration file :
vim /etc/default/tftpd-hpa
The content is :
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure -l -c -s"
Four 、 restart tftp service
The order is as follows :
sudo /etc/init.d/xinetd reload
sudo /etc/init.d/xinetd restart
sudo /etc/init.d/tftpd-hpa restart
If the last restart fails , Refer to the following methods :
tfpd-hpa Solution to restart failure
5、 ... and 、TFTP Server testing
Get into tftp Under the folder , New file test
cd /tftp
vim test
You can enter custom content, such as :tftp test;
then , Open another terminal :
Enter the command :tftp 192.168.1.201
This ip It's your own server host ip;
Enter the command
get test
And then you see test Downloaded ;
6、 ... and 、tftp Common commands
Parameter description :
-l yes local Abbreviation , The heel exists in Client The source file name of , Or download Client after Renamed file name .
-r yes remote Abbreviation , Heel Server namely PC machine tftp The source text in the root directory of the server Piece name , Or upload Server The renamed file name .
-g yes get Abbreviation , When downloading files ,
-p yes put Abbreviation , Upload files with ,
tftp The default occupation is 69 port .
According to the above parameters ,tftp The command format of is as follows
1、 download
tftp –g –l B.txt –r A.txt 192.168.1.2
From server Medium tftp The root directory , Download the file A.txt To Client And changed its name to B.txt; If not renamed ,B.txt Just change it to A.txt.
tftp –g –r A.txt 192.168.1.2
Download directly without renaming
2、 Upload
tftp -p –r B.txt 192.168.1.2
From Client Upload files B.txt To Server, And do not rename ;
The upload and download above cannot be tested locally , You need to use the development board to test ;
Locally , Use tftp +ip
Reference resources ftfp command
tftp Server setup
边栏推荐
- 制作jetson nano最基本的根文件系统、服务器挂载NFS文件系统
- The idea of compiling VBA Encyclopedia
- On February 14, 2022, learn the imitation Niuke project - develop the registration function
- Go language - Reflection
- Install database -linux-5.7
- Spark 概述
- Uc/os self-study from 0
- Run flash demo on ECS
- 软件测试工程师是做什么的 通过技术测试软件程序中是否有漏洞
- 【Kotlin学习】运算符重载及其他约定——重载算术运算符、比较运算符、集合与区间的约定
猜你喜欢

Spark 结构化流写入Hudi 实践

Spark structured stream writing Hudi practice

2022-2-13 learning xiangniuke project - version control

Jenkins learning (I) -- Jenkins installation
![[point cloud processing paper crazy reading frontier edition 13] - gapnet: graph attention based point neural network for exploring local feature](/img/66/2e7668cfed1ef4ddad26deed44a33a.png)
[point cloud processing paper crazy reading frontier edition 13] - gapnet: graph attention based point neural network for exploring local feature

Run flash demo on ECS

Using Hudi in idea

Crawler career from scratch (II): crawl the photos of my little sister ② (the website has been disabled)

Spark 概述

Beego learning - Tencent cloud upload pictures
随机推荐
Word segmentation in full-text indexing
【毕业季|进击的技术er】又到一年毕业季,一毕业就转行,从动物科学到程序员,10年程序员有话说
Windows安装Redis详细步骤
Installation and uninstallation of pyenv
Beego learning - Tencent cloud upload pictures
Win10 quick screenshot
基于opencv实现桌面图标识别
Bert install no package metadata was found for the 'sacraments' distribution
LeetCode每日一题(1996. The Number of Weak Characters in the Game)
Apply for domain name binding IP to open port 80 record
【Kotlin学习】类、对象和接口——定义类继承结构
Jetson Nano 自定义启动图标kernel Logo cboot logo
[point cloud processing paper crazy reading classic version 12] - foldingnet: point cloud auto encoder via deep grid deformation
图像修复方法研究综述----论文笔记
Alibaba cloud notes for the first time
Derivation of Fourier transform
[point cloud processing paper crazy reading classic version 14] - dynamic graph CNN for learning on point clouds
[point cloud processing paper crazy reading frontier edition 13] - gapnet: graph attention based point neural network for exploring local feature
Hudi学习笔记(三) 核心概念剖析
CATIA automation object architecture - detailed explanation of application objects (III) systemservice