- 自鯖の状況
- 1st Server
- 1st@Apps::Apache
- 1st@Apps::MYSQL
- 1st@Apps::PostgreSQL
- 1st@Apps::W2Ch利用状況
- 1st@Apps::W2Chセッション数
- 1st@Apps::iptables
- 1st@Sensor::CPU温度
- 1st@Sensor::FAN回転数
- 1st@System::CPU
- 1st@System::CPU-0
- 1st@System::CPU-1
- 1st@System::CPU-2
- 1st@System::CPU-3
- 1st@System::LoadAvg
- 1st@System::Memory
- 1st@System::Process
- 1st@System::SWAP
- 1st@System::Uptime
- 1st@System::Users
- 1st@Traffic::Ether0
- 1st@Traffic::PPP0
- 1st@Traffic::Wlan
- iptables::ログ集計
- 1st Server
PHP::eacceleratorの導入
導入してからしばらく立ちましたが、ローカル環境でも、
画面表示が遅い気がしていました・・・orz
ということで、eaccelerator を導入してみましたので、その手順です。
といっても、すごく簡単ですが・・・
# 最新版Get! [root@buri src]#wget http://jaist.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.5.2.tar.bz2 # そして、解凍 [root@buri src]#bunzip2 eaccelerator-0.9.5.2.tar.bz2 [root@buri src]#tar xvf eaccelerator-0.9.5.2.tar [root@buri src]#cd eaccelerator-0.9.5.2 [root@buri eaccelerator-0.9.5.2]# phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 # オプションは、なんとなく [root@buri eaccelerator-0.9.5.2]# ./configure --enable-eaccelerator --with-eaccelerator-shared-memory --with-eaccelerator-sessions --with-eaccelerator-content-caching [root@buri eaccelerator-0.9.5.2]# make [root@buri eaccelerator-0.9.5.2]# make test [root@buri eaccelerator-0.9.5.2]# make install # php.ini に設定追加して、Apache再起動 [eaccelerator] zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so" eaccelerator.shm_size = "32" 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" --added 以上です


新しいコメントの投稿