PHP Redis Extensions

Source: Internet
Author: User

Testing Some data on the test machine needs to use the redis extension, lazy yum installed PHP, previously yum install php-pecl-redis.x86_64 can be installed extensions, this time cannot find the installation package, do not toss the manual installation.

1. Download Phpredis

Cd/usr/local/src

wget https://github.com/nicolasff/phpredis/archive/2.2.4.tar.gz

TAR-ZXVF 2.2.4.tar.gz

CD phpredis-2.2.4/

2. Generate configure configuration file with Phpize

/usr/bin/phpize #会生成几个新文件, the default installation path is customized according to the custom path;

./configure--with-php-config=/usr/bin/php-config

Make #编译

Make install #安装

Make Test #测试

3. Configure PHP Support

Vim/usr/local/php/etc/php.ini #编辑配置文件, add the following on the last line

extension= "Redis.so"

4.

Restart HTTP load View phpinfo information:

Redis

Redis supportenabled

Redis Version2.2.4

Success!


PHP Redis Extensions

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.