1. eAccelerator 를 다운받자
http://bart.eaccelerator/source/
최신 버전을 확인하고
# wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2
2. 압축을 풀자
# tar -xvjf eaccelerator-0.9.6.1.tar.bz2
3. phpize
phpize 를 이용하여 설치할탠데.. phpize 가안되면
#yum install php-devel.i386
으로 설치를 하자
4. phpize
압축을 푼 eAccelerator 디렉토리로 들어가서
phpize 를 실행하자
/usr/bin/phpize
5. configure
# ./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
6. make
7. make test
8. make install
/usr/lib/php/modules/ 에 가보면
9. 캐쉬디렉토리 생성
# mkdir /var/tmp/eaccelerator
# chown apache:apache /var/tmp/eaccelerator/
# chmod 700 /var/tmp/eaccelerator/
캐쉬디렉토리는 어디든 상관없으나, /tmp 에 생성하면 서버가 재부팅될때 사라지므로 주의하자
10. php.ini 설정
[eAccelerator]
extension=eaccelerator.so
eaccelerator.shm_size=”16″
eaccelerator.cache_dir=”/var/tmp/eaccelerator”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.filter=”"
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”0″
eaccelerator.shm_prune_period=”0″
eaccelerator.shm_only=”0″
eaccelerator.compress=”1″
eaccelerator.compress_level=”9″
11. 설정 reload
#service httpd reload
12. 설치 확인
#php -v
아래와 같이
with eAccelerator v0.9.6.1 나오면 성공!
과연 얼마나 속도가 향상 됬는지 확인해보자
다시 Zend Guard Loader 설치후 시험했던 옛 동아리홈피에서 실험해본다
6.52s (onload: 6.53s)
5.66s (onload: 5.67s)
5.97s (onload: 5.99s)
6.52s (onload: 6.53s)
6.02s (onload: 6.04s)
5.56s (onload: 5.58s)
6.58s (onload: 6.61s)
5.77s (onload: 5.79s)
6.58s (onload: 6.6s)
6.7s (onload: 6.73s)
평균 : 6.207 ...
빨라진게 맞을까.. 아니면 내가 잘못했을까..
'공부 > 0x04 LINUX' 카테고리의 다른 글
| 리눅스 공부 (0) | 2011/05/23 |
|---|---|
| eAccelerator 설치 (0) | 2011/05/03 |
| JDK 설치 (0) | 2011/05/03 |
| Zend Optimizer 설치 (1) | 2011/05/03 |
| 퍼미션 정리 (0) | 2011/05/03 |
| logrotate (0) | 2010/04/28 |
| TCP wrapper 를 이용한 접근제어 (0) | 2010/04/21 |
| modprobe 명령어 (0) | 2010/04/21 |
| awk (0) | 2010/04/21 |
| mkswap 과 swapon, swapoff 명령어 (0) | 2010/04/21 |
| resize2fs (0) | 2010/04/21 |






