歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> nginx小總結(七)

nginx小總結(七)

日期:2017/3/1 16:35:01   编辑:關於Linux
nginx小總結(七) nginx小總結(六) http://www.2cto.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。
Copyright © Linux教程網 All Rights Reserved