linux安裝PHP memcache模組問題

來源:互聯網
上載者:User
有3種寫法
第一種
yum install php-pecl-memcache

第二種
tar vxzf memcache-2.2.1.tgz
cd memcache-2.2.1
/usr/local/php/bin/phpize
./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config --with-zlib-dir
make
make install

第三種

進入lnmp解壓後的目錄,執行:./memcached.sh
斷行符號確認後就會自動安裝memcache php擴充和memcached。


這3種都是一樣得???還是有什麼區別 我已經暈了


回複討論(解決方案)

第一種需要你有安裝yum才可以使用這種方式安裝php-memcache
第二種是下載memcache安裝包,在本機解壓,編譯安裝,最基本的安裝方法。
第三種是,inmp裡面的memcached.sh已經包含了第二種的所有執行語句,直接執行./memcached.sh就等於是第二種的安裝方式

三種都一樣,如果對這方面不熟還使用yum那個比較好。

第一種需要你有安裝yum才可以使用這種方式安裝php-memcache
第二種是下載memcache安裝包,在本機解壓,編譯安裝,最基本的安裝方法。
第三種是,inmp裡面的memcached.sh已經包含了第二種的所有執行語句,直接執行./memcached.sh就等於是第二種的安裝方式

三種都一樣,如果對這方面不熟還使用yum那個比較好。

有區別把 我第三種方式安裝了 用php -m | grep memcach 查不到的

那就用一種能裝的。memcached.sh裡寫的東西可能有問題。

受精的過程你可能會做很多姿勢

所以
如果你需要
那麼選用這種姿勢
yum install php-pecl-memcache

建議推薦第2種方式安裝,這樣後期設定,比較方便。

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.