nginx小總結(七)

來源:互聯網
上載者:User

nginx小總結(七) nginx小總結(六)http://www.bkjia.com/os/201303/193337.html php訪問memcache  www.2cto.com      在php中使用Memcached伺服器,有兩種方式。一個是PHP架構開發的memcache,另一個是使用的libmemcached的memcached。     http://pecl.php.net/package/memcache 在網上下載所需要memcache版本!目前的穩定版本2.2.7的。首先安裝  www.2cto.com  [root@host2 ~]# tar zxf memcache-2.2.7.tgz [root@host2 memcache-2.2.7]# /usr/local/php/bin/phpize [root@host2 memcache-2.2.7]# ./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config  [root@host2 memcache-2.2.7]# make && make install Build complete. Don't forget to run 'make test'. Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/上面是安裝完成之後的顯示!下面修改 [root@host2 memcache-2.2.7]# vim /usr/local/php/etc/php.ini extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/"extension=memcache.so行了,到此就搞定,另外一種,也是差不多!不過先要安裝libmemcached。  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.