Ali cloud CentOS 7 TFTP server installation

CentOS 7 TFTP server installation

I. INTRODUCTION

TFTP (Trivial File Transfer Protocol, Trivial File Transfer Protocol)), is a 69-port protocol for simple file transfers between the client and server implementations provides uncomplicated little overhead, no complicated file based on UDP protocol transmission services. TFTP file transfer protocol specifically designed for the small, can only get files from the server, or write files to the server, can not list directories, can not be certified.

Second, the installation

  1. TFTP server is running relies on xinetd, xinetd installation dependent services:
# yum install -y xinetd

Xinetd: That extended internet daemon, is a new generation of network daemon service program, also known as Super Internet server, used to manage a variety of lightweight Internet service. Xinetd provides functionality similar to inetd + tcp_wrapper, but more powerful and safe.

  1. Installation Tftp Service:
# yum install -y tftp-server

Third, the configuration

  1. Create shared folders and set permissions:
# mkdir /root/dy

# chmod 777 /
root/dy
  1. Configuring tftp services, / etc / xinetd.d / tftp:
# vim /etc/xinetd.d/tftp

Here Insert Picture Description
Where the parameter '-c', you can specify whether to create the file.
3. restart the service:

# systemctl restart xinetd
  1. Firewall Release port: UDP 69
# firewall-cmd --permanent --add-port=69/udp

# firewall-cmd --reload

View firewall

# systemctl status firewalld

Here Insert Picture Description
Firewall and not turned on
by entering the following statement

# systemctl start firewalld

This time has been opened successfully.
Here you

# systemctl status firewalld

If there is:
Here Insert Picture Description
green running occurs, turn successful.

Firewall Release port: UDP 69

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

# firewall-cmd --reload
Published 23 original articles · won praise 8 · views 2005

Guess you like

Origin blog.csdn.net/qq_39610398/article/details/104750914
Recommended