Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Configuration steps of tftp Service in Ubuntu

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "the configuration steps of tftp service in Ubuntu". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn the configuration steps of tftp service in Ubuntu.

To configure the Ubuntu tftp service:

1. Install related software packages: Ubuntu tftp (server), tftp (client), xinetd

Sudo apt-get install tftpd tftp xinetd

2. Establish a configuration file

Create a configuration file tftp under / etc/xinetd.d/

Sudo vi tftp

Enter the following in the file:

Service tftp

{socket_type = dgram

Protocol = udp

Wait = yes

User = root

Server = / usr/sbin/in.tftpd

Server_args =-s / tftpboot

Disable = no

Per_source = 11

Cps = 100 2

Flags = IPv4}

Save exit

3. Establish the directory of Ubuntu tftp service files (the location where files are uploaded and downloaded), and change their permissions

Sudo mkdir / tftpboot

Sudo chmod 777 / tftpboot-R

4. Restart the service

Sudo / etc/init.d/xinetd restart

Now that the Ubuntu tftp service is installed, you can test it. (suppose there is a test file test.txt in the current directory)

$tftp 127.0.0.1

Tftp > put test.txt

Sent 1018 bytes in 0.0 seconds

Tftp > get test.txt

Received 1018 bytes in 0.1 seconds

Tftp > quit

Through the get command, you can upload the test.txt file in the current directory to its service file directory through Ubuntu tftp. At this point, the test.txt file appears under / tftpboot. With the put command, you can download the test.txt file from / tftpboot. This verifies the correctness of the Ubuntu tftp service configuration. When the file is uploaded and downloaded, you can exit with the quit command. If you strictly follow the above steps to configure the Ubuntu tftp service, you can generally succeed. If you can't get or put, check to see if the firewall is turned off.

Thank you for reading, the above is the content of "configuration steps of tftp service in Ubuntu". After the study of this article, I believe you have a deeper understanding of the configuration steps of tftp service in Ubuntu, and the specific usage needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report