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.