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

How to configure tftp Services in ubuntu

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

How do I configure tftp services in ubuntu? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

If tftp exists under / etc/xinetd.d/, do the following

Turn off the xinetd service

$sudo service xinetdstop

Delete tftp Fil

$sudo rm / etc/xinetd.d/tftp

Start the xinetd service

$sudo service xinetdstart

Install tftp client and server

$sudo apt-getinstall tftp-hpa$sudo apt-getinstall tftpd-hpa

Modify tftpd-hpa configuration file

$vim / etc/default/tftpd-hpa modifies "/ var/lib/tftpboot" to "/ tftpboot"-- secure "to"-- secure-c "allows new files to be uploaded

If / tftpboot does not exist, create the directory

$sudo mkdir / tftpboot$sudo chmod 777 / tftpboot

Restart the tftpd-hpa service

$sudo service tftpd-hpa restart

If the service is restarted successfully, the corresponding process can be found.

$ps-ef | grepin.tftpd

test

Execute the command at the terminal:

Tftp other party ip address download file: get file name upload file: put file name exit: quit

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

$tftp127.0.0.1tftp > put test.txtSent 1018 bytes in 0.0secondstftp > get test.txtReceived1018 bytes in 1018 secondstftp > quit$

Through the get command, you can upload the test.txt file in the current directory to its service file directory through 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 tftp service configuration. When the file is uploaded and downloaded, you can exit with the quit command.

This is the answer to the question on how to configure tftp service in ubuntu. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

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