2009년 4월 22일 수요일

tftp hpa 서버 설치하기

tftp hpa 서버 설치하기 리눅스

2008/10/02 01:23

복사 http://blog.naver.com/phyojae/80056481348



tftp는 커널이미지를 올릴때 많이 쓴다

어쨋던 tftp를 설치해야되요


설치가 되어있다면 상관없지만 안되어있다면 설치해야되요


<레드햇 9 2.4.18 버전>

1. rpm 파일 가져오기
레드햇 계열은 cd속에 파일이 있다
시디 속에 보면 rpm 폴더가 있음
파일명은
tftp-0.32-4.i386.rpm
tftp-server-0.32-4.i386.rpm

2. 설치
rpm -Uvh tftp-0.32-4.i386.rpm
rpm -Uvh tftp-server-0.32-4.i386.rpm

3. tftpboot 폴더만들기

mkdir /tftpboot

(최상위에 만들어야되요 / 환경 설정에서 변경 가능, 옵션으로 설정함)

tftp 서버를 실행하면 이폴더에서 파일을 찾습니다.

윈도우를 생각하면 공유폴더 정도나 ftp서버정도로 생각하시고 기본 저 폴더로 공유가된다고

생각하시면 됩니다

4. tftp 실행하게 설정 바꾸기

vi /etc/xinit.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 /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

disable이 yes로 되어있는데 no로 바꿔주세요^^

5. 이제 서비스를 재시작하면 tftp가 실행된다.
/etc/rc.d/init.d/xinetd restart
service xinetd restart

<우분투>
2. 설치
apt-get install tftp

4. tftp 실행하게 설정 바꾸기
vi /etc/default/tftp-hpa
RUN_DAEMON = "yes"
no로 기본되어있는데 yes로 바꿔주세요

5. 이제 서비스를 재시작하면 tftp가 실행된다.
/etc/init.d/tftp-hpa restart

확인

netstat -au
netstat -al | grep tftp

참고로 방화벽 끄세요~

이렇게 하면재시작 된다


<페도라>
2. 설치
yum install tftp

5. 이제 서비스를 재시작하면 tftp가 실행된다.
/etc/rc.d/init.d/xinetd restart

이제 tftp 설치하고 실행하는고 끝낫네

댓글 없음:

댓글 쓰기