霧里看花

Good Luck To You!

centos 環境快速配置

本次以qingcloud的centos 6.6 64位鏡像為例
1,先更新系統補丁
yum -y update
2,安裝 wdlinux 的 lanmp v2.5 生產環境包
wget http://dl.wdlinux.cn:5180/lanmp_v2.5.tar.gz
tar zxvf lanmp_v2.5.tar.gz
sh install.sh
輸入數字 3 安裝
輸入數字 2  選擇php-5.3.29
等待半小時左右才會安裝完成
3,安裝eAccelerator  (雖然lanmp v2.5默認是安裝了eAccelerator 的,但是可能是兼容性問題,在centos 6.6下并沒有安裝成功)
wget --no-check-certificate https://codeload.github.com/eaccelerator/eaccelerator/legacy.tar.gz/master
mv master eaccelerator.tar.gz
tar zvxf eaccelerator.tar.gz
cd eaccelerator-eaccelerator-42067ac
/www/wdlinux/php/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=/www/wdlinux/php/bin/php-config
make && make install
然后在php.ini 最底部加入:
;eaccelerator
extension = "eaccelerator.so"
eaccelerator.shm_size = "1"
eaccelerator.cache_dir = "/tmp/eaccelerator"
eaccelerator.enable = "1"
eaccelerator.optimizer = "0"
eaccelerator.debug = "0"
eaccelerator.name_space = ""
eaccelerator.check_mtime = "1"
eaccelerator.filter = ""
eaccelerator.shm_max = "0"
eaccelerator.shm_ttl = "3600"
eaccelerator.shm_prune_period = "3600"
eaccelerator.shm_only = "0"
eaccelerator.compress = "0"
eaccelerator.compress_level = "9"
 
 
順便修改php.ini
short_open_tag = On
request_order = "CGP"
重啟 apache 
service httpd restart
4.安裝memcached
wget cs.9477.com/memcached_ins.sh
sh memcached_ins.sh
輸入數字2 選擇php-5.3.X


?   2019年12月   ?
1
2345678
9101112131415
16171819202122
23242526272829
3031
控制面板
您好,歡迎到訪網站!
  查看權限
網站分類
    搜索
    最新留言
    文章歸檔
    網站收藏
    友情鏈接
    • RainbowSoft Studio Z-Blog
    • 訂閱本站的 RSS 2.0 新聞聚合

    Powered By Z-BlogPHP 1.5.1 Zero

    Copyright itechwall Rights Reserved.  湘ICP備19004160號-2

    青海省11选五今日走势图