当前位置:网站首页>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
边栏推荐
- Installation and uninstallation of pyenv
- unbuntu(debian)下TFTP服务器搭建及测试
- [kotlin learning] control flow of higher-order functions -- lambda return statements and anonymous functions
- 专利查询网站
- [point cloud processing paper crazy reading classic version 12] - foldingnet: point cloud auto encoder via deep grid deformation
- Construction of simple database learning environment
- 2022-2-13 learning xiangniuke project - version control
- PolyWorks script development learning notes (III) -treeview advanced operation
- Go language - JSON processing
- Logstash+jdbc data synchronization +head display problems
猜你喜欢

Flink-CDC实践(含实操步骤与截图)
![[point cloud processing paper crazy reading classic version 14] - dynamic graph CNN for learning on point clouds](/img/7d/b66545284d6baea2763fd8d8555e1d.png)
[point cloud processing paper crazy reading classic version 14] - dynamic graph CNN for learning on point clouds

Flink学习笔记(十一)Table API 和 SQL

MySQL installation and configuration (command line version)

About the configuration of vs2008+rade CATIA v5r22

Solve POM in idea Comment top line problem in XML file

Jenkins learning (I) -- Jenkins installation

Flink学习笔记(八)多流转换

Jenkins learning (II) -- setting up Chinese
![[point cloud processing paper crazy reading cutting-edge version 12] - adaptive graph revolution for point cloud analysis](/img/c6/5f723d9021cf684dcfb662ed3acaec.png)
[point cloud processing paper crazy reading cutting-edge version 12] - adaptive graph revolution for point cloud analysis
随机推荐
LeetCode每日一题(516. Longest Palindromic Subsequence)
[point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis
Flink学习笔记(八)多流转换
Jestson Nano 从tftp服务器下载更新kernel和dtb
Database execution error: SQL_ mode only_ full_ group_ by:
Jenkins learning (II) -- setting up Chinese
npm install安装依赖包报错解决方法
[point cloud processing paper crazy reading classic version 12] - foldingnet: point cloud auto encoder via deep grid deformation
Windows安装Redis详细步骤
LeetCode每日一题(985. Sum of Even Numbers After Queries)
The server denied password root remote connection access
Apply for domain name binding IP to open port 80 record
【Kotlin学习】运算符重载及其他约定——重载算术运算符、比较运算符、集合与区间的约定
【点云处理之论文狂读前沿版11】—— Unsupervised Point Cloud Pre-training via Occlusion Completion
[point cloud processing paper crazy reading frontier edition 13] - gapnet: graph attention based point neural network for exploring local feature
Basic knowledge of database design
Quickly use markdown to edit articles
Detailed steps of windows installation redis
Matlab dichotomy to find the optimal solution
The less successful implementation and lessons of RESNET