Build a tftp service in Ubuntu

Source: Internet
Author: User
Ubuntu tftp service Setup 1. install the software package sudoapt-getinstalltftpdtftpxinetd2, create the configuration file in/etc/xinetd. create a configuration file tftpsudovi/etc/xinetd. d/tftp content: servicetftp {& nbsp

Build a tftp service in Ubuntu

1. install the software package

Sudo apt-get install tftpd tftp xinetd

2. Create a configuration file

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

Sudo vi/etc/xinetd. d/tftp

The content is as follows:

  1. Service tftp
  2. {
  3. Socket_type = dgram
  4. Protocol = udp
  5. Wait = yes
  6. User = root
  7. Server =/usr/sbin/in. tftpd
  8. Server_args =-s/tftpboot
  9. Disable = no
  10. Per_source = 11
  11. CPIs = 100 2
  12. Flags = IPv4
  13. }

3. Create a tftp service file directory

In the preceding configuration, server_args =-s/tftpboot is used. The/tftpboot directory is the location of the uploaded and downloaded files.

Sudo mkdir/tftpboot -- create the/tftpboot directory

Sudo chmod 777/tftpboot-R -- set the permission to 777

4. Restart the tftp service.

Sudo/etc/init. d/xinetd restart -- restart the tftp Server

5. Test

Sudo netstat-a | grep tftp -- check whether the startup is successful. You can see udp 0 0 *: tftp *:*

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.