참고
- Setup PHP-FPM with APC on Ubuntu 10.04 for Faster Performance
- Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support (LEMP) On Ubuntu 12.04 LTS
- PHP accelerator 선택 (APC, eAccelerator, XCache, Nusphere PhpExpress, Zend Optimizer+)
APC install
sudo apt-get install php5 php5-dev php5-suhosin sudo apt-get install php-pear php5-cgi php5-cli php5-curl sudo apt-get install php5-gd php5-imagick php5-mcrypt sudo apt-get install php5-fpm php-apc php5-memcache php5-mysql #* 2013.05.23 sudo apt-get install php-apc sudo vi /etc/php5/fpm/pool.d/www.conf # pm = static # pm.max_children = 10 # pm.max_requests = 100 # 4Core CPU, 512MB RSM 서버에 맞는 설정 sudo vi /etc/php5/fpm/php.ini extension=apc.so # apc 를 사용하도록 설정 # **** 2013.05.23 PHP Performance with APC + Memcached extension=apc.so apc.shm_segments=1 apc.shm_size=256 apc.optimization=0 apc.num_files_hint=2048 apc.ttl=3600 apc.user_ttl=3600 apc.max_file_size=1M sudo /etc/init.d/php5-fpm reload
xcache install
sudo apt-get install php5-xcache sudo /etc/init.d/php5-fpm reload
반응형
'lang > php' 카테고리의 다른 글
TOAST - Unit Testing for CodeIgniter v. 1.5 (0) | 2013.03.22 |
---|---|
php mysql handlrsocket (0) | 2013.02.05 |
Nginx + CodeIgniter (0) | 2013.01.25 |
CodeIgniter facebook php-sdk always getUser 0 (2) | 2012.11.01 |
IP 주소확인 (0) | 2012.06.12 |