Install TFTP server in CentOS 7

Source: Internet
Author: User
Tags file transfer protocol

Install TFTP server in CentOS 7

I. Introduction

TFTP (Trivial File Transfer Protocol, simple File Transfer Protocol )), it is a Protocol implemented based on UDP port 69 for simple file transmission between the client and the server to provide file transmission services that are not complex, costly, and complex. The TFTP protocol is designed for small file transfer. files can only be obtained from the server or written to the server. directories cannot be listed or authenticated.

The TFTP server depends on xinetd.

II. Environment

System: CentOS Linux release 7.4.1708 (Core)

Share path:/cephfs/sw-conf file permission 777

Selinux: Disabled

Iii. Installation

1. Install the xinetd dependency service:

# Yum install-y xinetd

2. Install the Tftp service:

# Yum install-y tftp-server

3. View:

# Rpm-qa | grep xinetd

# Rpm-qa | grep tftp

Iv. Configuration

1. Create shared folders and Set permissions:

# Mkdir/cephfs/sw-conf

# Chmod 777/cephfs/sw-conf

2. Configure the tftp service,/etc/xinetd. d/tftp:

# Vim/etc/xinetd. d/tftp

The '-C' parameter specifies whether a file can be created.

3. Restart the service:

# Systemctl restart xinetd

4. Firewall port: UDP 69

# Firewall-cmd -- permanent -- add-port = 69/udp

# Firewall-cmd -- reload

V. Test

Install tftp-client on other linux devices: tftp. x86_64

# Yum-y install tftp. x86_64

Server View: the upload is successful.

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.