四虎影视在线影院在线观看,小s货再浪些再咬紧点h,国产精品水嫩水嫩,97精产国品一二三产区
標(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)入第二。
[root@ home]# cd eaccelerator-eaccelerator-42067ac/
復(fù)制代碼
配置步驟:
[root@ eaccelerator-eaccelerator-42067ac]# /www/wdlinux/apache_php/bin/phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
復(fù)制代碼
apache_php是一個連接文件,就是快捷方式,就不用去輸入php后面的版本號了。
[root@ eaccelerator-eaccelerator-42067ac]# ./configure --enable-eaccelerator=shared --with-php-config=/www/wdlinux/apache_php/bin/php-config --with-eaccelerator-shared-memory
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了。
[root@ eaccelerator-eaccelerator-42067ac]# make
----------------------------------------------------------------------
Libraries have been installed in:
/home/eaccelerator-eaccelerator-42067ac/modules
............................省略了
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete. 建立完整的。
Don't forget to run 'make test'. 別忘了測試運(yùn)行。
復(fù)制代碼
最后的最后php.ini
zend_extension="/www/wdlinux/apache_php-5.4.26/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so"
復(fù)制代碼
這個路徑可以 馬克install 查看到。
eaccelerator.cache_dir="/www/wdlinux/eaccelerator_cache"
復(fù)制代碼
這個緩存路徑可以隨意設(shè)置。
[eaccelerator]
zend_extension="/www/wdlinux/apache_php-5.4.26/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so"
eaccelerator.shm_size="1"
eaccelerator.cache_dir="/www/wdlinux/eaccelerator_cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "disk_only"
eaccelerator.sessions = "disk_only"
eaccelerator.content = "disk_only"
復(fù)制代碼
創(chuàng)建緩存文件夾。mkdir,然后重啟服務(wù)
[root@ wdlinux]# mkdir eaccelerator_cache
[root@ /]# service httpd restart
復(fù)制代碼
安裝結(jié)果
下載
(15.25 KB)
2015-11-26 20:04
查看緩存效果
[root@ wdlinux]# cd eaccelerator_cache/
[root@ eaccelerator_cache]# ls
1000
[root@ eaccelerator_cache]# cd 1000/
[root@ 1000]# ls
0 1 2 3 4 5 6 7 8 9 a b c d e f
[root@ 1000]# cd 0
[root@ 0]# ls
0 1 2 3 4 5 6 7 8 9 a b c d e f
[root@ 0]# cd 0
[root@ 0]# ls
eaccelerator-0048c9a1386c970bdc8043077351996f
復(fù)制代碼
更詳細(xì)的可以到我博客里看看。
地址:http://www.nnbbxx.net/post-4282.html
本教程原創(chuàng)。本人的安裝過程。我留個連接管理不要打我
下載
(6 KB)
2015-11-26 20:06
圖片附件:
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