四虎影视在线影院在线观看,小s货再浪些再咬紧点h,国产精品水嫩水嫩,97精产国品一二三产区

Board logo

標(biāo)題: [教程] wdcp升級php5.4后安裝官方eAccelerator最新版本教程 [打印本頁]

作者: 紅領(lǐng)巾    時(shí)間: 2015-11-26 20:07     標(biāo)題: wdcp升級php5.4后安裝官方eAccelerator最新版本教程

本帖最后由 紅領(lǐng)巾 于 2015-11-26 20:13 編輯

這是我來wdcp第一次寫教程哈、
我也是昨天折騰過后安裝成功了,我也是小白一個。
首先從官方下載最新版本的eAccelerator
官方:http://eaccelerator.net/
github:https://github.com/eaccelerator/eaccelerator
我已經(jīng)嘗試  可以使用wget 下載,不過下載過后要給文件添加一個后綴就可以使用了。
解壓我就不用說了吧。
zip解壓命令:unzip 文件名.zip
tar解壓命令:tar jxvf 文件名.tar.bz2
解壓好之后進(jìn)入第二。
  1. [root@ home]# cd eaccelerator-eaccelerator-42067ac/
復(fù)制代碼
配置步驟:
  1. [root@ eaccelerator-eaccelerator-42067ac]# /www/wdlinux/apache_php/bin/phpize
  2. Configuring for:
  3. PHP Api Version:         20100412
  4. Zend Module Api No:      20100525
  5. Zend Extension Api No:   220100525
復(fù)制代碼
apache_php是一個連接文件,就是快捷方式,就不用去輸入php后面的版本號了。
  1. [root@ eaccelerator-eaccelerator-42067ac]# ./configure --enable-eaccelerator=shared --with-php-config=/www/wdlinux/apache_php/bin/php-config --with-eaccelerator-shared-memory
  2. configure: WARNING: unrecognized options: --with-eaccelerator-shared-memory
復(fù)制代碼
然后是上面這一步配置php路徑。這是官方給的編輯代碼,會報(bào)錯。這個報(bào)錯的意思是提示–with-eaccelerator-shared-memory是一個無效的指令。
因?yàn)槲沂菑膚dcp論壇找到的相關(guān)編譯命令?吹焦俜降囊膊畈欢嗑湍眠^來用,其實(shí)這個就是配置php的路徑。
提示無效就刪掉--with-eaccelerator-shared-memory不要了。在執(zhí)行一遍。
最后馬克一下就看到已經(jīng)OK了。
  1. [root@ eaccelerator-eaccelerator-42067ac]# make

  2. ----------------------------------------------------------------------
  3. Libraries have been installed in:
  4.    /home/eaccelerator-eaccelerator-42067ac/modules
  5. ............................省略了
  6. more information, such as the ld(1) and ld.so(8) manual pages.
  7. ----------------------------------------------------------------------
  8. Build complete.     建立完整的。
  9. Don't forget to run 'make test'.    別忘了測試運(yùn)行。
復(fù)制代碼
最后的最后php.ini
  1. zend_extension="/www/wdlinux/apache_php-5.4.26/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so"
復(fù)制代碼
這個路徑可以  馬克install 查看到。
  1. eaccelerator.cache_dir="/www/wdlinux/eaccelerator_cache"
復(fù)制代碼
這個緩存路徑可以隨意設(shè)置。
  1. [eaccelerator]
  2. zend_extension="/www/wdlinux/apache_php-5.4.26/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so"
  3. eaccelerator.shm_size="1"
  4. eaccelerator.cache_dir="/www/wdlinux/eaccelerator_cache"
  5. eaccelerator.enable="1"
  6. eaccelerator.optimizer="1"
  7. eaccelerator.check_mtime="1"
  8. eaccelerator.debug="0"
  9. eaccelerator.filter=""
  10. eaccelerator.shm_max="0"
  11. eaccelerator.shm_ttl="3600"
  12. eaccelerator.shm_prune_period="3600"
  13. eaccelerator.shm_only="0"
  14. eaccelerator.compress="1"
  15. eaccelerator.compress_level="9"
  16. eaccelerator.keys = "disk_only"
  17. eaccelerator.sessions = "disk_only"
  18. eaccelerator.content = "disk_only"
復(fù)制代碼
創(chuàng)建緩存文件夾。mkdir,然后重啟服務(wù)
  1. [root@ wdlinux]# mkdir eaccelerator_cache
  2. [root@ /]# service httpd restart
復(fù)制代碼
安裝結(jié)果
eaccelerator.jpg
查看緩存效果
  1. [root@ wdlinux]# cd eaccelerator_cache/
  2. [root@ eaccelerator_cache]# ls
  3. 1000
  4. [root@ eaccelerator_cache]# cd 1000/
  5. [root@ 1000]# ls
  6. 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
  7. [root@ 1000]# cd 0
  8. [root@ 0]# ls
  9. 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
  10. [root@ 0]# cd 0
  11. [root@ 0]# ls
  12. eaccelerator-0048c9a1386c970bdc8043077351996f
復(fù)制代碼
更詳細(xì)的可以到我博客里看看。
地址:http://www.nnbbxx.net/post-4282.html
本教程原創(chuàng)。本人的安裝過程。我留個連接管理不要打我 QQ圖片20151126193547.gif

圖片附件: eaccelerator.jpg (2015-11-26 20:04, 15.25 KB) / 下載次數(shù) 6612
http://cd-genova.com/bbs/attachment.php?aid=5665&k=d53157e1939d498be873fcb0a40aa4b5&t=1744152103&sid=O50wdO



圖片附件: QQ圖片20151126193547.gif (2015-11-26 20:06, 6 KB) / 下載次數(shù) 6865
http://cd-genova.com/bbs/attachment.php?aid=5666&k=41e5956e9bd16ff6930114ba3ba7bf9c&t=1744152103&sid=O50wdO


作者: 紅領(lǐng)巾    時(shí)間: 2015-11-26 20:12

把a(bǔ)pache_php改成php也可以,因?yàn)樗麄兌际擎溄游募。都是連接到php5.4的。
作者: zhuxiaolei87    時(shí)間: 2016-3-19 12:46

小白看不懂




歡迎光臨 WDlinux官方論壇 (http://cd-genova.com/bbs/) Powered by Discuz! 7.2