This article describes how to install the memcached client of php in linux. For more information, see
This article describes how to install the memcached client of php in linux. For more information, see
The following describes how to install the memcached client of php.
1. download and install the libmemcached Client
Official website address:
$ Wget-c https://launchpad.net/libmemcached/1.0/1.0.16/javasdownload/libmemcached-1.0.16.tar.gz?do not download 1.0.17 Oh bug $ tar-zxvf libmemcached-1.0.16.tar.gz $ cd libmemcached-1.0.16 $. /configure -- prefix =/usr/local/libmemcached -- with-memcached $ sudo make install
2. Download and install memcached
Official website address:
$ Wget-c $ tar-zxvf memcached-2.2.0b1.tgz $ D memcached-2.2.0b1 $ sudo/usr/local/php/bin/phpize $. /configure -- enable-memcached -- with-php-config =/usr/local/php/bin/php-config -- with-libmemcached-dir =/usr/local/libmemcached -- disabled -memcached-sasl $ sudo make install
3. Restart php nginx
$ Sudo/etc/init. d/nginx restart $ sudo/etc/init. d/php restart
Note: For how to compile a restart nginx and php script, refer
Php Startup Script
Nginx Startup Script
4. Check whether the installation is successful.
If the phpinfo () function appears as follows, the installation is successful.
,