작성자 : xxx
작성일 : 2007-12-13
비 고 : 본 문서는 프로젝트 추진중에 필요한 개발서버(WAS/DB), CVS서버 및 파일서버를 활용하기 위해서 리눅스 박스로 상기의 서버를 구축하기위한 참고문서이다.
문서버전 : v1.0
▶ 서버사양
CPU 팬티엄 4 / 메모리 1G
▶ 1. 리눅스 설치 : FC5
root 패스워드
설치과정 : 회사의 리눅스 박스는 모두 FC5
리눅스 설치후 확인해야할 각 항목들
# rpm -qa | grep telnet
telnet-0.17-35.2.1
telnet-server-0.17-35.2.1
# rpm -qa | grep vsftpd
vsftpd-2.0.4-1.2
/etc/sysconfig/i18n
#LANG="ko_KR.UTF-8"
#SYSFONT="none"
LANG="ko_KR.eucKR"
SUPPORTED="en_US:en:ko_KR.euckr:ko_KR:ko"
LANG="ko_KR.UTF-8"
SUPPORTED="en_US:en:ko_KR.UTF-8:ko_KR:ko"
SYSFONT="Gulim"
/etc/sysconfig/samba
# Options to smbd
SMBDOPTIONS="-D"
# Options to nmbd
NMBDOPTIONS="-D"
# Options for winbindd
WINBINDOPTIONS=""
/etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
setenforce 0 의 명령으로 SELINUX=disabled 바꿀 수 있다.
▶ 2. SAMBA 설치
공용폴더 : /common
사용자 아이디 : unico
사용자 패스워드 : unico
/etc/samba/smb.conf
# Charset settings
dos charset = EUC-KR
unix charset = EUC-KR
display charset = EUC-KR
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writeable = yes
▶ 3. FTP 설치
설정파일 : /etc/vsftpd/vsftpd.conf
▶ 4. CVS 설치
# rpm -qa | grep cvs
cvs-1.11.21-3.2
/etc/services 의 파일에 CVS 포트가 있는지 확인 함.
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations
/etc/xinetd.d 디렉토리 안에 서비스 cvspserver 를 만들어 줌 (기존 cvs를 이름바꾸어도 됨)
# default: off
# description: The CVS service can record the history of your source /
# files. CVS stores all the versions of a file in a single /
# file in a clever way that only stores the differences /
# between versions.
service cvspserver
{
disable = no
port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv = PATH
server = /usr/bin/cvs
env = HOME=/home/cvs
server_args = -f --allow-root=/home/cvs pserver
log_on_failure += USERID
# bind = 127.0.0.1
}
루트계정으로 service xinetd restart 명령을 실행하여 xinetd 데몬을 리스타트 함.
루트계정으로 useradd cvs 하여 cvs 계정을 등록 함.
cvs 계정을 만들고 홈 디렉토리 위치를 repository 로 설정.
cvs -d :local:/home/cvs init
cvs 계정의 사용자를 등록하기 위해서 /home/cvs/CVSROOT 디렉토리 아래에 passwd 파일을 만들어 줌.
htpasswd -nb 사용자 암호
의 명령어로 passwd 파일안에 ymkang:AQpQ9efOc2F4Q:cvs 처럼 CVS 사용자를 등록 함.
trader01:QClmsV0rN4o/s
▶ 5. 오라클 설치
설치파일 : 10201_database_linux32.zip
중요 :
/etc/redhat-release 파일 변경
Fedora Core release 5 (Bordeaux) ->
redhat-4
※ 오라클 설치는 추가적인 문서참조
▶ 6. 웹로직 설치
weblogic 계정을 추가 함.
설치파일 : net_platform816_linux32.bin
(기존에 홈페이지에 로그인할 수 있는 계정정보를 가지고 있어야 함)
▶ 7. 가우스 설치
/etc/hosts 파일에 반드시 첫번째 아이피 정보를 확인해야 함
211.238.32.176 unis.web2gether.co.kr unis localhost.localdomain localhost
설치계정인 weblogic의 환경설정(.bash_profile)이 아래와 같이 되어있어야 함.
# User specific environment and startup programs
JAVA_HOME=/was/bea/jdk142_11
export JAVA_HOME
CLASSPATH=$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin
BEA_HOME=/was/bea/weblogic81
LANG=ko_KR.eucKR
export LANG
export BEA_HOME
export CLASSPATH
가우스 설치파일 디렉토리에서 sh install.sh 의 명령으로 실행 함.
▶ 8. 방화벽 설정
루트계정으로 setup 명령을 치면 관리유틸리티 화면이 나타남.
방화벽 설정에서 보안수준을 활성화하고 사용자 설정버튼을 눌러서
x 신뢰하는 장치: [*] eth0 x
x x
x 위장(MASQUERADE) 장치: [*] eth0 x
x x
x [ ] SSH [*] Telnet [*] FTP x
x 허용할 서비스: [ ] WWW (HTTP) [*] Samba [ ] 메일 (SMTP) x
x [ ] 보안 WWW (HTTPS) x
x 그 외의 포트 cvspserver:tcp___________ x
위와 같이 설정함. (포트는 웹로직의 7001 과 CVS의 2401 포트를 명기해줌)