CentOS APC 설치

Jmnote (토론 | 기여)님의 2012년 9월 9일 (일) 12:27 판 (→‎사전작업)
APC

1 방법 1: pecl install

1.1 사전작업

설치확인
[root@jmnote ~]# pecl
... (생략)
Type "pecl help options" to list all options.
Type "pecl help shortcuts" to list all command shortcuts.
Type "pecl help <command>" to get the help for the specified command.
[root@jmnote ~]# gcc
gcc: no input files
[root@jmnote ~]# phpize
Cannot find config.m4. 
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
[root@jmnote ~]# make 
make: *** No targets specified and no makefile found.  Stop.
→ 정상적으로 설치되어 있다면 위와 같이 나온다.

1.2 APC 설치

명령어
pecl install apc
실행예시
[root@jmnote ~]# pecl install apc
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Enable internal debugging in APC [no] :

Enter 키 입력.

Enable per request file info about files used from the APC cache [no] : 
Enable spin locks (EXPERIMENTAL) [no] : 
Enable memory protection (EXPERIMENTAL) [no] : 
Enable pthread mutexes (default) [yes] : 
Enable pthread read/write locks (EXPERIMENTAL) [no] :

모두 Enter 키 입력

... (생략)
Build process completed successfully
Installing '/var/tmp/pear-build-root/install-APC-3.1.9//usr/include/php/ext/apc/apc_serializer.h'
Installing '/var/tmp/pear-build-root/install-APC-3.1.9//usr/lib64/php/modules/apc.so'
install ok: channel://pecl.php.net/APC-3.1.9
You should add "extension=apc.so" to php.ini
→ 정상적으로 빌드되었다.
php.iniextension=apc.so를 추가해야 한다고 알려준다.

2 방법 2: pecl download

2.1 APC 다운로드

명령어
pecl download apc
실행예시 (성공)
[root@jmnote ~]# pecl download apc
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
File /root/APC-3.1.9.tgz downloaded
→ stable 버전 중 가장 높은 버전을 다운로드 한다.
실행예시 (실패)
[root@jmnote ~]# pecl install apc
-bash: pecl: command not found
pecl 설치 필요.

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}