yum으로 간단히 설치 할 수 있는데 아래와 같이 설치 할 수 있습니다
# yum update tftp-server
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* base: data.nicehosting.co.kr
* extras: data.nicehosting.co.kr
* updates: data.nicehosting.co.kr
addons | 951 B 00:00
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Setting up Update Process
Package(s) tftp-server available, but not installed.
No Packages marked for Update
[root@w03 ~]# yum install tftp-server
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* base: data.nicehosting.co.kr
* extras: data.nicehosting.co.kr
* updates: data.nicehosting.co.kr
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package tftp-server.x86_64 0:0.49-2.el5.centos set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
tftp-server x86_64 0.49-2.el5.centos base 32 k
Transaction Summary
================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 32 k
Is this ok [y/N]: y
Downloading Packages:
tftp-server-0.49-2.el5.centos.x86_64.rpm | 32 kB 00:27
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : tftp-server 1/1
Installed:
tftp-server.x86_64 0:0.49-2.el5.centos
Complete!
위와 같이 yum으로 간단히 설치할 수 있고 rpm 명령어로 아래와 같이 설치 되었는지 확인할 수 있죠
# rpm -qa | grep tftp
tftp-server-0.49-2.el5.centos
이제 제대로 실행이 되는지 확인해야 하는데 설치가 되면 기본적으로 tftp 서버가 실행되어 있지도 않고 설정상 내려져 있죠
tftp 서버가 올라 가도록 설정을 해야 하는데 /etc/xinetd.d/tftp 파일을 열어 disable = yes를 disable = no로 바꿔 줘야 합니다
# 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 /tftpboot
disable = yes -> no
per_source = 11
cps = 100 2
flags = IPv4
}
그리고 tftp 서버가 xinetd에 속하기 때문에 xinetd를 재가동하면 tftp 서버가 실행이 될껍니다
# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
xinetd가 재가동 되면 아래와 같이 제대로 tftp 서버가 실행이 되었는지 알 수가 있습니다
# netstat -a | grep tftp
udp 0 0 *:tftp *:*