# 이 시나리오는 zabbix server 및 agent 를 구동하기 위해 짜여졌으며 각 서비스가 일반적인 경로에 설치되지 않음을 알림니다.
oracle virtualbox 에 centos 6.6 설치과정
1. centos 6.6 설치
- 설치 언어 설정
- 키보드 설정
- 네트워크 활성화
a. 자동으로 연결체크
- root 암호 생성
- 모든 공간 사용
a. 변경사항기록
- Minimal 설치
2. 사용자 생성 및 권한부여
- adduser 사용자
- passwd 사용자
- vi /etc/sudoers (sudo 권한 부여)
a. 'root ALL=(ALL) ALL' 아래에 '사용자 ALL=(ALL) ALL'
3. 네트워크 설정 포트포워딩
- 20 (ftp)
- 21 (ftp)
- 22 (putty)
- 80 (http)
- 3306 (mysql)
- 호스트 IP 는 host 상에서 ipconfig 로 확인 (VirtualBox Host-Only Network, 통상 192.168.56.1)
- 게스트 IP는 centos 상에서 ifconfig로 확인 (통상 10.0.2.15)
- 호스트 상에서 putty 접속가능
* ifconfig command not found : yum install net-tools
4. 필요 패키지 설치
- yum install gcc*
- yum install libxml*
- yum install iptables
- yum install vsftpd ftp
5. iptables 설정
- chkconfig iptables on (자동시작추가)
- 방화벽추가
a. iptables -I INPUT 1 -p tcp --dport 20 -j ACCEPT
b. iptables -I INPUT 1 -p tcp --dport 21 -j ACCEPT
c. iptables -I INPUT 1 -p tcp --dport 22 -j ACCEPT
d. iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT
e. iptables -I INPUT 1 -p tcp --dport 3306 -j ACCEPT
f. iptables -I INPUT 1 -p tcp --dport 10050 -j ACCEPT
g. iptables -I INPUT 1 -p tcp --dport 10051 -j ACCEPT
h. iptables -I OUTPUT 1 -p tcp --dport 3306 -j ACCEPT
i. iptables -I OUTPUT 1 -p tcp --dport 10050 -j ACCEPT
- service iptables save
- service iptables start
- cat /etc/sysconfig/iptables
5. ftp 설정
- vi /etc/vsftpd/vsftpd.conf
a. anonymous enable=NO 수정
- netstat -anp | grep vsftpd 로 확인
- chkconfig vsftpd on
- service vsftpd start
6. cmake 설치
- mkdir /install
- mkdir /install/tar
- tar -zxvf cmake-2.8.4.tar.gz
- cd /install/tar/cmake-2.8.4
- bootstrap
- make
- make install
7. profile 수정
- vi /etc/profile
JAVA_HOME=/usr/local/java
MYSQL_HOME=/install/mysql
export JAVA_HOME
export PATH=$PATH:$JAVA_HOME/bin:$MYSQL_HOME/bin
- 세션재접속
'Linux' 카테고리의 다른 글
[6-6] zabbix agent 설치 (0) | 2015.10.21 |
---|---|
[6-5] zabbix server 설치 (0) | 2015.10.21 |
[6-4] php 설치 (0) | 2015.10.21 |
[6-3] mysql 설치 (0) | 2015.10.21 |
[6-2] apache 설치 (1) | 2015.10.21 |