cakePHPÃeAcceleratorãç¸æ§è¯ãï¼ï¼
ã¨ããèªç¤¾ãµã¼ãã¹ãLAMPã«cakePHPã§éå¶ããã¦ãã¾ãã
ãã®ãµã¼ãã¹ãå¤ãªå¤ãªãéããªããä¸æããã¨ç¹ãããªããªããã¨ãã
大ä½ãå¤8æã11æããã¼ã¯ããã©ãã£ãã¯ãå¤ãæé帯ã®ããã§ãã
ãã®åº¦ã«ãæ·±å¤ã¨ãã«ãnet-snmpæ§ããã¢ã©ã¼ãã¡ã¼ã«â|ï¿£|_
SSHãã°ã¤ã³ï¼ãã¡ãéããlogin:ã売ã£ãå¾passwordã¨èãããã¾ã§æ°åï¼
topè¦ãã¨ã
- ãã¼ãã¢ãã¬ã¼ã¸ãææã®100è¶ ãã150ã¨ãã
- userãCPUå æ ãã¾ãããã¡ã¢ãªã«ã¯å¾®å¦ã«ä½è£ãi/oãçµæ§æ¥ã¦ãã£ã½ãã
- httpdãããã¼ã£ã¨ããã¼ã¸ä¸æ¯å æ ãã¦ãã
apacheã®mpmããã£ãããPHPãã¼ã¸ã§ã³ãï½ãã¦ã¿ããã試è¡é¯èª¤ãç¹°ãè¿ããã解決ããã
cakeã®ã¢ããªå´ã®å¦çã«ãåé¡ãè¦å½ãããªãã
ãã©ãã£ãã¯ãå¤ãã£ã¡ãå¤ããã©ã¾ã ãããã ãããã£ã¦ã¬ãã«ã
æ¯æ©æ¯æ©ãã¢ã©ã¼ãâapachectl restartãç¹°ãè¿ããå¯ä¸è¶³ã®æ¥ã
ã§ããã
åºåã¯è£å¡«ãã¦ã¼ã¶ã¼ããã¯è¦æ
ã
æå¾ã®æ段ã§ããã¬ã¼ã ã¯ã¼ã¯ã¨ç¸æ§ãæãããã¤ãã£ã¦ãªãã£ããeAcceleratorãçªã£è¾¼ãã§ã¿ããã¨ã«ã
cakeãOKã§ããä¸ç·ã«å
¥ãã¦ããµã¼ãã¹ã«ä½¿ã£ã¦ãããS2Containerãããã®ã¨ãããä¸å®ã§ä¸å®ã§ä»æ¹ãç¡ãã£ãã®ã§ãããè½ã¡ã¦ä¸ç·ã«è¦ããªããªãããã¯ããã ããã¨ã決è¡ãã¾ããã
/xx/xxx/xx/apachectl stop (ãã¼ãã¢ãã¬ã¼ã¸ãè½ã¡çãã®ãå¾ ã¤) cd /xx/xxx/xx/eaccelerator-0.9.5-beta2 phpize ./configure --enable-eaccelerator=shared --with-php-config=/xx/xxx/xx/php-config make make install
mv control.php /ããã¥ã¡ã³ãã«ã¼ãå
ã®ã©ãã
âã¾ãã¢ã¬ãªãã§ãapacheå´ã§ç¤¾å
ã¨ãããããã¢ã¯ã»ã¹ã§ããªããã¦ããã
ã¡ãªã¿ã«ãcontrol.phpãåããªãã£ãã®ã§ãã¯ããã«åºã¦ããifæã¨ãã®ä¸ã§ã³ã¡ã³ãã¢ã¦ãããã¦ããifæã交æãã¦ã¿ããããã¾ããã
mkdir /tmp/eaccelerator
ä¸è¨ãã£ã¬ã¯ããªã777ã«ï¼é©å½ï¼
php.iniã«ä¸è¨ã追è¨
[eaccelerator] zend_extension="make installã®éã«åºã¦ããsoã®path/eaccelerator.so" eaccelerator.shm_size = "128" eaccelerator.cache_dir = "/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" eaccelerator.keys = "shm_and_disk" eaccelerator.sessions = "shm_and_disk" eaccelerator.content = "shm_and_disk" eaccelerator.allowed_admin_path = "/é©å½ãªdocumentrootå /control.php"
ã§
apachectl start
ããã¨
ãã¼ãã¢ãã¬ã¼ã¸ã2å°ãã¼ããããã¼ã¼ã150ãã2ã«ãªã£ããããã¦ã観å¯ãã¦ã¦ãä¸åã«ä¸ããã¾ããã
ããã¼eAcceleratorãããã¾ã§å¹æã§ããããªã®ãã
S2containerã«ããCakePHPã«ããä¸å
·åã¯åºã¾ããã§ãããããã§ã¨ããããã¾ããã
ä½ã§ãããªæ¹åãããã®ãã¯ãããããããªãã§ããã
cakePHPã¯ãèªã¿è¾¼ã¿ãã¡ã¤ã«ãå¤ãããã¨ããªã®ããªã大è¦æ¨¡FWã¯å
¨é¨ãããªã®ãï¼ï¼
é«è² è·ç°å¢ã§ä½¿ã£ããã¨ç¡ãããããããªããã©ã
ã»ãã·ã§ã³ã®èªã¿æ¸ãã¨ããªã®ããªãã¨ãèããããã®ã§ãããã»ãã·ã§ã³ãmemcacheãDBã«ãã¦ã¿ãã®ã¯æéçã«ããã¡ãã£ã¨å
ã«ãªãããã§ããã
Webãµã¼ãã®åæ£ï¼DNSã©ã¦ã³ãããã³ï¼ããããã«æ©æå°å
¥ãèãã¦ãããã®ã®ãdocomoãiã¢ã¼ãIDã«å¯¾å¿ãã¦ããããã使ãã¨ããã§ããã¤ãéä¿¡ããã°ã»ãã·ã§ã³ç¡ãã¦ãçµæ§ã©ãã«ããªãããï¼ã§ãã®ã§ã
ä½ã¯ã¨ããããã¨ãããããcakePHPã¨eAccerelatorã®ç¸æ§ã¯æ群ã«è¯ããã¨ãåããã¾ããã
ä¸å®å¿ã
ã»ã»ã»
èãã¦ã¿ãã°ãã¼ãã¢ãã¬ã¼ã¸2ã£ã¦è»½ããªãâ|ï¿£|_