CentOS7, TFTP server 설치 사용하기.
작업환경: CentOS 7, firewalld 사용안함, selinux 사용안함.
tftp서버는 xinetd에 의해 제어되기때문에, xinetd도 함께 설치해야한다.
# yum install tftp-server xinetd
xinetd의 tftp 설정확인.(기본 tftp root 디렉토리를 변경하려면, 아래 14번 줄의 /var/lib/tftpboot를 변경하면된다.)
# cat /etc/xinetd.d/tftp # default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating systems. service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /var/lib/tftpboot disable = yes per_source = 11 cps = 100 2 flags = IPv4 }