Memcached to improve Dynamic Web site performance by caching database query results and reducing database access times. Memcached
A separate, distributed cache server that provides a shared, high-performance cache service for multiple Web servers in memcached
On the server, the extension of multiple memcached cache service is developed according to the hash algorithm, and then the consistency hash is presented to solve
Increase or decrease the number of cache failures caused by the cache server causing the re-hash.
Official site http://memcached.org/
When we use memcached, we need to use PHP to connect memcache, the specific steps omitted here, said the problem encountered:
The Memcache module has not been installed.
The author originally in the compilation installs the PHP time, specified the PHP installation directory is Php-apache, therefore specifies here PHP.ini's directory Also
It's/usr/local/php-apache/etc/, but there's a problem here, Memcache's default php.ini path.
Is/usr/local/php/etc/, we can use a command to see the path of php.ini:
/usr/local/php-apache/bin/php-i |grep-i Config
So we can see, in fact, the path of Config-file in/usr/local/php/etc/, after typing the command display:
Configuration File (php.ini) Path = =/usr/local/php/etc
So we need to create a/usr/local/php/etc/path and copy the php.ini file to this path, so the problem
Have decided
This article is from "The Miracle Teenager" blog, please be sure to keep this source http://raffaelexr.blog.51cto.com/8555551/1735455
About the PHP compiler installation Extension Module memcache problem