High-rise flat bottom: Red Hat 7-series TFTP server Setup

Source: Internet
Author: User
Tags file transfer protocol

TFTP is a simple File transfer protocol that is used during PXE deployment to transfer the initial boot program, kernel, and configuration files.

The following experiments were completed on CentOS 7.2

[Email protected] ~]# cat/etc/redhat-release

CentOS Linux release 7.2.1511 (Core)

[Email protected] ~]# uname-r

3.10.0-327.10.1.el7.x86_64

Yum Direct Installation

[Email protected] ~]# yum-y install Tftp-server

RPM Check configuration file path

[Email protected] ~]# RPM-QC tftp-server

/etc/xinetd.d/tftp

Modifying a configuration file

Disable change to no enable TFTP service

-C allows TFTP write

-VVV record verbose log, this parameter is written in the last

/var/lib/tftpboot is the default TFTP home directory, if you modify this path remember to set SELinux-related permissions

Disable = no

Server_args =-s-c/VAR/LIB/TFTPBOOT-VVV

Restart Daemon xinetd Effective after modifying configuration file

[Email protected] ~]# systemctl restart Xinetd.service

Configure the boot autorun xinetd process

[Email protected] ~]# Systemctl enable Xinetd.service

Check xinetd boot status

[Email protected] ~]# systemctl status Xinetd.service

XINETD.SERVICE-XINETD A powerful replacement for Inetd

loaded:loaded (/usr/lib/systemd/system/xinetd.service; disabled; vendor preset:enabled)

Active:active (running) since Thu 2016-03-10 08:51:30 EST; 17s ago

Allow TFTP traffic when the firewall is turned on, perment parameter indicates permanent, no this firewall rule fails after reboot.

Firewall-cmd--add-service=tftp--permenent

Restart Firewall service to take effect of the above rules

[Email protected] ~]# systemctl restart Firewalld.service

Check TFTP port listening status

Ss-ul | grep tftp

[Email protected] ~]# Ss-ul | grep tftp

Unconn 0 0 *:tftp *:*

Unconn 0 0::: tftp:::*

High-rise flat bottom: Red Hat 7-series TFTP server Setup

Related Article

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.