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, 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.

,

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: info-contact@alibabacloud.com 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.