Install the php memcached client in linux

Source: Internet
Author: User
Tags php memcached
This article describes how to install the memcached client of php in linux. For more information about how to install the memcached client of php, see the following.

1. download and install the libmemcached client

$ Wget-c 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

$wget -c$tar -zxvf memcached-2.2.0b1.tgz$cd 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$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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

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.