Linux Installation Phpredis Extensions

Source: Internet
Author: User
Tags phpinfo

1. Download the extension installation package

wget https://github.com/nicolasff/phpredis/downloads

2. Unzip

TAR-ZXVF nicolasff-phpredis-2.1.3-124-gd4ad907.tar.gz

3. Enter the extracted file (generate configure file)

/phpstudy/server/php/bin/phpize

4. Configure PHP

./configure--with-php-config=/phpstudy/server/php/bin/php-config

5. Compiling the installation

Make && make install

6. Configure PHP.ini

Vi/phpstudy/server/php/lib/php.ini

(Join: extension=redis.so)

    1. Restart Apache or nginx (direct restart phpstudy more convenient: phpstudy restart)
    2. To the normal situation, you can see the Redis extension with Phpinfo
    3. If Phpinfo does not have Redis extension information, add/etc/php.d/redis.ini (path is my local)
    4. Redis.ini content is as follows:
    5. ; Enable MySQL Extension module
    6. Extension=redis.so
    7. Restart Apache or nginx (direct restart phpstudy more convenient: phpstudy restart)

Linux Installation Phpredis 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.