How to add a redis extension to the Ubuntu system for PHP

Source: Internet
Author: User
Tags install redis
A recent project, want to use Redis as a database, PHP is not the redis extension, must be installed, how to install it? I find a lot of information on the internet is pre-compiled, but did not succeed, so I looked for another method is not required to compile the direct installation can be

After installation, restart Nginx, PHP5-FPM,

Re-start Nginx

Sudo/etc/init.d/nginx restart

Restart PHP5-FMP


Phpinfo is displayed on the webpage:

Reids See if there is

A Redis client must also be installed by the PHP operation Redis to

sudo apt-get install Redis-server  

Now it's time to experience it.

OK, to sleep, tomorrow to get up to rob the tickets, the Spring Festival home, life is so, decided, it is necessary to pursue, sometimes dream, seems always so far away, bite ah, stick down, everything.

-----------------------Beijing Haidian

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