본문으로 바로가기

CentOS 5.3 APM Setup

category 시스템/Linux 2015. 12. 14. 13:23
반응형

 


1. Centos 5.3 설치하기.

- 기본 Default 설정을 이용 Centos 5.3 (final) 을 설치한다.
- SElinux 사용안함 설정.

# vi /etc/selinux/config  (setup 시 설정에서도 변경가능)
- SELINUX=disable

# vi /etc/sysconfig/i18n  (언어설정)
- LANG="ko_KR.UTF-8"
==> 수정
- LANG="ko_KR.eucKR"
- SUPPORTED="ko_KR.eucKR:ko_KR.ko:ko_KR.UTF-8"

# reboot

2. 업데이트 확인 및 필요한 package 설치.

# yum check-update
# yum update

- package 설치.
# rpm -qa gcc* cpp* compat-gcc* flex*
# rpm -qa libjpeg* libpng* freetype* gd-*

# yum -y install gcc cpp gcc-c++ compat-gcc-32-g77 flex
# yum -y install libjpeg-devel libpng-devel freetype-devel gd-devel
# yum -y install termcap libtermcap libtermcap-devel gdbm-devel
# yum -y install zlib* libxml* freetype* libpng* libjpeg*
# yum -y install compat-libstdc++ libstdc++-devel libstdc++


yum update gcc cpp gcc-c++ compat-gcc-32-g77 flex
yum update libjpeg-devel libpng-devel freetype-devel gd-devel
yum update termcap libtermcap libtermcap-devel gdbm-devel
yum update zlib* libxml* freetype* libpng* libjpeg*
yum update compat-libstdc++ libstdc++-devel libstdc++


3. 시스템 상태 체크 및 최신 library 설치.

# uname -a
Linux ubidev.ubicnt.co.kr
kernel 2.6.18-128.1.6.el5

- library 버젼 check 설치된 버젼.
gcc-4.1.2-44.el5
cpp-4.1.2-44.el5
flex-2.5.4a-41.fc6
gcc-c++-4.1.2-44.el5

libpng-1.2.10-7.1.el5_3.2
libpng-devel-1.2.10-7.1.el5_3.2

libjpeg-6b-37
libjpeg-devel-6b-37

freetype-2.2.1-21.el5_3
freetype-devel-2.2.1-21.el5_3

gd-2.0.33-9.4.el5_1.1
gd-devel-2.0.33-9.4.el5_1.1


-- library 최신 버젼 소스 컴파일 설치.

3-1. libpng 설치
# libpng : http://www.libpng.org
# wget http://prdownloads.sourceforge.net/libpng/libpng-1.2.25.tar.gz?download
# wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.25.tar.gz

# wget http://prdownloads.sourceforge.net/libpng/libpng-1.2.35.tar.gz?download
# wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.35.tar.gz

# ./configure && make && make install

3-2. libjpeg 설치.  (설치 안해도 됨)
# jpeg : http://www.ijg.org
# wget ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz

# mkdir -p /usr/local/man/man1
# ./configure --enable-shared --enable-static
# make && make install

3-3. freetype 설치
# freetype : http://www.freetype.org
# wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.4.tar.gz
# wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz
# wget http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.6.tar.gz
# wget http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.7.tar.gz
# wget http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.8.tar.gz
# wget http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.9.tar.gz

# wget http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-doc-2.3.9.tar.gz

# ./configure && make && make install

3-4. gd 설치
# gd : http://www.libgd.org
# wget http://www.libgd.org/releases/gd-2.0.35.tar.gz

# ./configure && make && make install


4. APM 설치

4-1. 소스 다운로드.
# apache
# wget http://www.lug.or.kr/files/centos_book/download/apache_php_mysql/httpd-2.2.6.tar.gz
# wget http://ftp.apache-kr.org/httpd/httpd-2.2.6.tar.gz
# wget http://ftp.kaist.ac.kr/pub/Apache/httpd/httpd-2.2.8.tar.gz
# wget http://ftp.kaist.ac.kr/Apache/httpd/httpd-2.0.63.tar.gz
# wget http://ftp.kaist.ac.kr/Apache/httpd/httpd-2.2.11.tar.gz

# libapreq
# wget http://ftp.kaist.ac.kr/Apache/httpd/libapreq/libapreq-1.33.tar.gz
# wget http://ftp.kaist.ac.kr/Apache/httpd/libapreq/libapreq-1.34.tar.gz
# wget http://ftp.kaist.ac.kr/Apache/httpd/libapreq/libapreq2-2.08.tar.gz
# wget http://ftp.kaist.ac.kr/Apache/httpd/libapreq/libapreq2-2.12.tar.gz

# mod_ftp
# wget http://ftp.kaist.ac.kr/Apache/httpd/mod_ftp/mod_ftp-0.9.2-beta-crlf.zip
# wget http://ftp.kaist.ac.kr/Apache/httpd/mod_ftp/mod_ftp-0.9.2-beta.tar.gz

# modpython
# wget http://ftp.kaist.ac.kr/Apache/httpd/modpython/mod_python-2.7.11.tgz
# wget http://ftp.kaist.ac.kr/Apache/httpd/modpython/mod_python-3.2.10.tgz
# wget http://ftp.kaist.ac.kr/Apache/httpd/modpython/mod_python-3.2.7.tgz
# wget http://ftp.kaist.ac.kr/Apache/httpd/modpython/mod_python-3.2.8.tgz
# wget http://ftp.kaist.ac.kr/Apache/httpd/modpython/mod_python-3.3.0b.tgz
# wget http://ftp.kaist.ac.kr/Apache/httpd/modpython/mod_python-3.3.1.tgz

# php
# wget http://kr2.php.net/get/php-4.4.8.tar.gz/from/this/mirror
# wget http://www.lug.or.kr/files/centos_book/download/apache_php_mysql/php-5.2.4.tar.gz
# wget http://kr2.php.net/get/php-5.2.5.tar.gz/from/this/mirror
# wget http://kr2.php.net/get/php-5.2.9.tar.gz/from/this/mirror

# wget http://www.lug.or.kr/files/centos_book/apache_php_mysql/ZendOptimizer-3.3.0a-linux-glibc21-i386.tar.gz
# wget http://www.lug.or.kr/files/centos_book/apache_php_mysql/apache-tomcat-5.5.23-admin.tar.gz
# wget http://www.lug.or.kr/files/centos_book/apache_php_mysql/apache-tomcat-5.5.23.tar.gz

# mysql
# wget http://www.lug.or.kr/files/centos_book/download/apache_php_mysql/mysql-5.0.45.tar.gz
# wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.34.tar.gz/from/ftp://mirror.khlug.org/mysql/
# wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.34-linux-i686-glibc23.tar.gz/from/http://mirror.khlug.org/mysql/
# wget http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.67.tar.gz/from/http://mysql.byungsoo.net/


#### 설치 순서 . mysql -> apache -> php
#### 설치 디렉토리 : /usr/local/server 에 설치.

4-2. mysql 설치.
- mysql version : mysql-5.0.67.tar.gz
- location : /usr/local/mysql

# useradd -M -s /bin/false mysql
# ./configure --prefix=/usr/local/mysql \
--with-charset=utf8 \
--with-extra-charsets=all
--enable-thread-safe-client
--with-readline

# make
# make install

** mysqli 옵션 이용시 --enable-thread-safe-client 추가. (httpd를 쓰레드로 운영(--with-mpm=worker) 할때)
** ssh 접속시 (putty,utf-8) 콜솔에서 한글입력이 가능 옵션 : --with-readline


- 환경파일 복사 및 초기화 및 실행

# cd /usr/local/mysql
# bin/mysql_install_db --user=mysql
# chown -R root .
# chown -R mysql var
# chgrp -R mysql .

# pwd
/home/down/apm/mysql-5.0.67
# cp support-files/my-huge.cnf /etc/my.cnf  (? 이거때문에 문제 생기는 경우 있음)

# vi ~/.bash_profile
PATH=$PATH:$HOME/bin:/usr/local/mysql/bin
# source ~/.bash_profile

또는 mysql 실행 파일을 /bin/ 밑으로 복사

- 자동 실행 설정.
# cp share/mysql/mysql.server /etc/init.d/mysqld
# chmod 755 /etc/init.d/mysqld
# chkconfig --add mysqld
# chkconfig --list | grep mysqld

- 레벨 수정. (안해도됨)
# chkconfig --level 24 mysqld off
# chkconfig --list mysqld
mysqld          0:해제  1:해제  2:해제  3:활성  4:해제  5:활성  6:해제

- 실행 및 root 암호 설정.
# /etc/init.d/mysqld start
# mysqladmin -u root password 암호
or
mysql> update user set password=password('newpwd') where user='root';
or
mysql> set password for 'root'@'localhost'=password('newpwd');


### unix 설치 시 참조.
# groupadd mysql
# useradd -g mysql mysql
# cd /usr/local
# gunzip < /home/down/apm/mysql-5.1.34.tar.gz | tar xvf -
# ln -s /usr/local/mysql-5.1.34 mysql
# cd mysql
# chown -R mysql .
# chgrop -R mysql .
# scripts/mysql install_db --user=mysql
# chown -R root .
# chown -R mysql data
# bin/mysqld_safe --user=mysql &


4-3. Apache 설치.
- Apache version : httpd-2.2.11.tar.gz
- location : /usr/local/apache

- configuration
- 일반적 config
# ./configure \
# --prefix=/usr/local/server/apache \
# --enable-so \
# --enable-mods-shared=all \
# --enable-rewrite

- ssl 포함해 컴파일 할때 openssl install 후 컴파일 하기.
# yum install openssl*
# ./configure \
# --prefix=/usr/local/server/apache \
# --enable-so \
# --enable-mods-shared=all \
# --enable-ssl \
# --with-ssl \
# --enable-rewrite

# make && make install

- 자동실행 설정.
# cp /usr/llocal/apache/bin/apachectl /etc/init.d/httpd
# chmod 755 /etc/init.d/httpd
# vi /etc/init.d/httpd
---------------------------------------------------------------------------
#!/bin/sh
# chkconfig:2345 90 90
# description: init file for Apache server daemon
# processname: /usr/local/apache/bin/apachectl
# config: /usr/local/apache/conf/httpd.conf
# pidfile: /usr/local/apache/logs/httpd.pid
---------------------------------------------------------------------------
위 설정 안될시.
# vi /etc/rc.local
----------------------------------------------------
/usr/local/apache/bin/apachectl -k start  라인 추가
----------------------------------------------------

- conf 수정.
---------------------------------------------------------------------------
user,group -> nobody 설정
ServerName 설정
---------------------------------------------------------------------------

- Firewall 설정 서비스 port 오픈.
# vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
# /etc/init.d/iptables restart

4-4. php 설치.
- Apache version : php-5.2.9.tar.gz
- location : /usr/local/php

- check library
# rpm -qa libc-client libc-client-devel net-snmp-devel
# yum install libxml2 bzip* curl-devel ncurses-devel
# yum install licjpeg-devel libpng-devel libxml-devel freetype-devel gd-devel
# yum install libc-client libc-client-devel net-snmp-devel libmcrypt libmcrypt-devel

-
# ./configure
--prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-pdo-mysql=/usr/local/mysql
--with-config-file-path=/usr/local/apache/conf
--enable-magic-quotes

--with-curl
--with-xml2
--with-xpm-dir=/usr
--with-mcrypt
--with-zlib
--with-gd
--with-ttf \
--with-png

--enable-safe-mode
--enable-bcmath \
--enable-dio
--enable-gd-native-ttf

--enable-mod-charset
--enable-mbstring
--enable-calendar
--enable-sigchild
--enable-sysvmsg
--enable-sysvsem
--enable-sysvshm
--enable-sockets
--enable-ftp \
--enable-inline-optimization
--enable-exif
--enable-sqlite-utf8

--with-snmp
--with-openssl
--with-zlib-dir \
--with-jpeg-dir
--with-png-dir
--with-freetype-dir
--with-gettext
--with-libxml-dir
--with-pcre-dir
--with-imap \
--with-imap-ssl
--with-kerberos
--with-ncurses \
--with-regex=php
--with-bz2


** unknown configuration options were used
--enable-sockets
--enable-track-vars
--enable-mailparse
--enable-url-includes
--enable-trans-id
--with-xml
--with-curl-dir

# make
# make install

참고용. Sulinux 에서의 compile 옵션
-------------------------------------------------------------------------------
# ./configure --prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-config-file-path=/usr/local/apache/conf \
--enable-magic-quotes
--with-curl
--with-xml2
--with-xpm-dir=/usr
--with-mcrypt \
--with-zlib
--with-gd
--with-ttf
--with-png
--with-expat-dir=/usr
--with-gmp
--with-xml \
--with-language=korean
--with-charset=euc_kr
--disable-debug
--disable-rpath
--with-iconv \
--enable-safe-mode
--enable-bcmath
--enable-dio
--enable-gd-native-ttf \
--enable-sysvsem
--enable-sysvshm
--enable-wddx
--enable-pic \
--enable-inline-optimization
--enable-mbstring
--enable-mbregex
--enable-mbstr-enc-trans \
--enable-ftp
--disable-debug
--enable-track-vars=yes
--with-jpeg-dir \
--with-freetype-dir
--enable-gd-native-ttf
--enable-dl
--enable-gd-imgstrttf
--enable-exif

-------------------------------------------------------------------------------


*** final
#
./configure
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-pdo-mysql=/usr/local/mysql \
--with-config-file-path=/usr/local/apache/conf \
--enable-magic-quotes \
--with-curl \
--with-xpm-dir=/usr \
--with-mcrypt \
--with-zlib \
--with-gd \
--with-ttf \
--with-gmp \
--with-xml \
--disable-rpath \
--with-iconv \
--enable-safe-mode \
--enable-bcmath \
--enable-gd-native-ttf \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-inline-optimization \
--enable-mbstring \
--enable-mbregex \
--enable-ftp \
--with-jpeg-dir \
--with-freetype-dir \
--enable-gd-native-ttf \
--enable-exif \
--enable-calendar \
--enable-mod-charset \
--with-imap \
--with-imap-ssl \
--with-kerberos \
--with-ncurses \
--with-bz2 \


* unknown configure and not configure
--with-xml2 \
--with-png \
--with-expat-dir=/usr \
--with-language=korean \
--with-charset=euc_kr \
--enable-dio \
--enable-pic \
--enable-mbstr-enc-trans \
--enable-track-vars=yes \
--enable-dl \
--enable-gd-imgstrttf \
--with-oci8=/data/oracle/app

 

Installing PHP SAPI module:       cgi
Installing PHP CGI binary: /usr/local/bin/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/

 

Installing PHP SAPI module:       apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/
cp .libs/libphp5.so /usr/local/apache/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /home/down/apm/php-5.2.10/libs'
chmod 755 /usr/local/apache/modules/libphp5.so
[activating module `php5' in /usr/local/apache/conf/httpd.conf]

Installing PHP CLI binary:        /usr/local/php/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing build environment:     /usr/local/php/lib/php/build/
Installing header files:          /usr/local/php/include/php/
Installing helper programs:       /usr/local/php/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/php/lib/php/

Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1391
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1396
Warning: Cannot use a scalar value as an array in phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 1400
[PEAR] Archive_Tar    - installed: 1.3.3
[PEAR] Console_Getopt - installed: 1.2.3
[PEAR] Structures_Graph- installed: 1.0.2
[PEAR] XML_Util       - installed: 1.2.1
[PEAR] PEAR           - installed: 1.8.0
Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
Installing PDO headers:          /usr/local/php/include/php/ext/pdo/

 

 

- php.ini 복사.
# pwd
/home/down/apm/php-5.2.9
# cp php.ini-dist /usr/local/apache/confi/php.ini


- apache conf 수정.
# vi /usr/local/apache/conf/httpd.conf
-------------------------------------------------------------------
<ifModule dir_module>
 DirectoryIndex index.php index.html
</ifModule>

<ifModule mime_module>
.....
 #AddType text/html .shtml
 #AddOutputFilter INCLUDES .shtml

 AddHandler php5-script .phtml .php .inc .ini .html
 AddType application/x-httpd-php-source .phps .incs .inis
</ifMoudle>
-------------------------------------------------------------------


- phpinfo 로 내용 확인.


5. 추가 설정.
- 개인 홈 디렉토리 퍼미션 701 로 설정.

6. mysqladmin 설치.
8. mysqladmin 설치.
# wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-2.11.5-all-languages-utf-8-only.tar.gz?download
# wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-2.11.5-all-languages.tar.gz?download

# vi libraries/config.default.php  -> 아래 내용 수정.
$cfg['PmaAbsoluteUri'] = 'http://centdev.tsnit.co.kr/phpmyadmin/'
$cfg['Servers'][$i]['auth_type']; = 'http'


7. ZendOptimizer 설치.
- www.zend.com
# wget http://www.lug.or.kr/files/centos_book/apache_php_mysql/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz

# ./install.sh
- /usr/local/server/Zend     - 설치 위치
- /usr/local/server/apache/conf    - php.ini 위치
- /usr/local/server/apache/bin/apachectl  - apachectl 설치 위치

8. 트래픽 관리 (mod_cband)
- 1.3.x 는 mod_throttle 모듈 사용.
- 2.x    : mod_cband 사용

- cband.linux.pl
# wget http://www.lug.or.kr/files/centos_book/download/apache_php_mysql/mod-cband-0.9.7.5.tgz
# wget http://www.lug.or.kr/files/centos_book/apache_php_mysql/mod-cband-0.9.7.5.tgz

# ./configure --with-apxs=/usr/local/apache/bin/apxs
# make && make install

<ifModule cband_module>
#    CBandDefaultExceededURL http://www.kideagle.net
    <Location /cband-status>
      setHandler cband-status
      Order Deny,Allow
      Deny from all
      Allow from 192.168.0.220
    </Location>
    <Location /cband-me>
        SetHandler cband-status-me
 Order Deny,Allow
 Deny from all
 Allow from all
    </Location>
</ifModule>


9. DOS 공격 방어 ( mod_evasive )
# wget http://www.lug.or.kr/files/centos_book/apache_php_mysql/mod_evasive_1.10.1.tar.gz

mod_evasive.c -> apache 1.3.x
mod_evasive20.c -> apache 2.x

# cd mod_evasive
# /usr/local/server/apache/bin/apxs -iac mod_evasive20.c

<IfModule mod_evasive20.c>

<ifModule evasive20_module>
DOSHashTableSize 3097
DOSPageCount  3
DOSSiteCount  50
DOSPageInterval  1
DOSSiteInterval  1
DOSBlockingPeriod 30
</IfModule>

 

9.vsftp 설치.
# wget ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.0.5.tar.gz
# wget ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.0.6.tar.gz
# wget ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.0.7.tar.gz
# wget ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.1.0.tar.gz

# wget http://pkg.tini4u.net/ftp/vsftpd/i386/vsftpd-2.0.1-5.EL4.5_kor.i386.rpm
# rpm -Uvh vsftpd-2.0.1-5.EL4.5_kor.i386.rpm

 


10. jdk 설치.

# chmod +x jdk-1.5.0_version-linux-i585.bin
# ./jdk-1.5.0_version-linux-i585.bin
# mv jdk1.5.0_18 /usr/local/jdk1.5.0_18
# ln -s /usr/local/jdk1.5.0_18 /usr/local/java

# vi /etc/profile
-------------------------------------------------------------
export JAVA_HOME=/usr/local/java
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar
-------------------------------------------------------------
# source /etc/profile


11. tomcat 설치.
# apache-tomcat-5.5.23.tar.gz

# mv apache-tomcat-5.5.23 /usr/local/tomcat-5.5.23
# ln -s /usr/local/tomcat-5.5.23 /usr/local/tomcat5

# vi /etc/profile
-------------------------------------------------------------
export CATALINA_HOME=/usr/local/tomcat5
export PATH=$PATH:$CATALINZ_HOME/bin
-------------------------------------------------------------

12. CUBRID 1.4 DB 설치.
# wget http://dev.naver.com/frs/download.php/94/CUBRID-8.1.1.1032-linux.sh
# wget http://dev.naver.com/frs/download.php/94/CUBRID-8.1.4.1032-linux.sh
# sh CUBRID-8.1.4.1032-linux.sh
- license agree
- /usr/local/CUBRID
# . /root/.cubrid.sh
# cubrid service start
# cubrid service stop
# cubrid service status

 

 

 

 

 

반응형