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
- 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.
- Installation Tftp Service:
# yum install -y tftp-server
Third, the configuration
- Create shared folders and set permissions:
# mkdir /root/dy
# chmod 777 /
root/dy
- Configuring tftp services, / etc / xinetd.d / tftp:
# vim /etc/xinetd.d/tftp
Where the parameter '-c', you can specify whether to create the file.
3. restart the service:
# systemctl restart xinetd
- Firewall Release port: UDP 69
# firewall-cmd --permanent --add-port=69/udp
# firewall-cmd --reload
View firewall
# systemctl status firewalld
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:
green running occurs, turn successful.
Firewall Release port: UDP 69
# firewall-cmd --permanent --add-port=69/udp
# firewall-cmd --reload