99精品国产综合久久久久五月天,免费观看欧美大片毛片不用播放器 ,AV无码理论片在线观看免费网站,国产精品国产成人国产三级
標題:
[教程]
wdcp升級php5.4后安裝官方eAccelerator最新版本教程
[打印本頁]
作者:
紅領巾
時間:
2015-11-26 20:07
標題:
wdcp升級php5.4后安裝官方eAccelerator最新版本教程
本帖最后由 紅領巾 于 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
解壓好之后進入第二。
[root@ home]# cd eaccelerator-eaccelerator-42067ac/
復制代碼
配置步驟:
[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
復制代碼
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
復制代碼
然后是上面這一步配置php路徑。這是官方給的編輯代碼,會報錯。這個報錯的意思是提示–with-eaccelerator-shared-memory是一個無效的指令。
因為我是從wdcp論壇找到的相關編譯命令。看到官方的也差不多就拿過來用,其實這個就是配置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'. 別忘了測試運行。
復制代碼
最后的最后php.ini
zend_extension="/www/wdlinux/apache_php-5.4.26/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so"
復制代碼
這個路徑可以 馬克install 查看到。
eaccelerator.cache_dir="/www/wdlinux/eaccelerator_cache"
復制代碼
這個緩存路徑可以隨意設置。
[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"
復制代碼
創(chuàng)建緩存文件夾。mkdir,然后重啟服務
[root@ wdlinux]# mkdir eaccelerator_cache
[root@ /]# service httpd restart
復制代碼
安裝結果
下載
(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
復制代碼
更詳細的可以到我博客里看看。
地址: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ù) 6656
http://fudaan.com/bbs/attachment.php?aid=5665&k=21c8eba6cdaad59fd7ad6a23f159d344&t=1745026009&sid=5C3UvD
圖片附件:
QQ圖片20151126193547.gif
(2015-11-26 20:06, 6 KB) / 下載次數(shù) 6914
http://fudaan.com/bbs/attachment.php?aid=5666&k=ae87504df0982eeefad5cf951e616eba&t=1745026009&sid=5C3UvD
作者:
紅領巾
時間:
2015-11-26 20:12
把apache_php改成php也可以,因為他們都是鏈接文件。都是連接到php5.4的。
作者:
zhuxiaolei87
時間:
2016-3-19 12:46
小白看不懂
歡迎光臨 WDlinux官方論壇 (http://fudaan.com/bbs/)
Powered by Discuz! 7.2