linux, apache2.2, mysql5.0, php5.2, tomcat5.5 설치 연동.(2) _mysql

여러 옵션들은 인터넷을 뒤져가면서 메모한것임.
문제가 된다면 삭제하겠음.
----------------------------------------------------------------

Apache 2.2.8
Mysql 5.0.51  <--
php 5.2.6
j2se 6(jdk 1.6)
tomcat 5.5.12

2. mysql


mysql-5.0.51b.tar.gz
http://dev.mysql.com/downloads/

# tar xvfz mysql-5.0.51b.tar.gz -C /usr/local/src
# cd /usr/local/src/mysql-5.0.51b

configure, make, install
# ./configure
   --prefix=/usr/local/mysql \
   --with-mysqld-user=mysql \
   --sysconfdir=/etc \
   --with-charset=utf8 \                (euckr, 이전의 아파치와 맞춰주는것이 좋을듯)
   --enable-thread-safe-client       (thread모드로 컴파일, PHP에서의 에러해결을 위함)
# make
# make install

기본 DB, table생성
# /usr/local/src/mysql-5.0.51b/scripts/mysql_install_db

support file copy
# cp support-files/my-large.cnf /etc/my.cnf
(support-files폴더에 보면 여러개 있음.
 my-small           : 64M 이하
     -medium        :32MB - 64MB
     -large           : 512MB ram
     -huge           : 1G-2G ram
     -inndb-heavy : 4G, innodb
등, 적당히 골라서)
 
사용자, 그룹 추가
# groupadd mysql
# useradd -M -g mysql mysql

소유권 변경
# cd /usr/local/mysql
# chown -R root .
# chown -R mysql var
# chgrp -R mysql .

/etc/ld.so.conf 수정 (동적 라이브러리, 모듈 참조)
# vi /etc/ld.so.conf
(다음 문장을 제일 밑에 추가)
/usr/local/mysql/lib/mysql

# ldconfig (적용)


부팅시 실행 설정
# cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld

서비스에 추가
# chkconfig --add mysqld


실행
# /usr/local/mysql/bin/mysqld_safe --user=mysql&  (서버)

# /usr/local/mysql/bin/mysql -u mysql     (클라이언트)


다음은 PHP설치
by -레- | 2008/05/23 12:46 | Linux | 트랙백 | 덧글(0)
트랙백 주소 : http://zubilan.egloos.com/tb/4375653
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글



< 이전페이지 다음페이지 >