How PHP adds Redis extensions to the Ubuntu system

Source: Internet
Author: User
Tags install redis
This article mainly introduces the Ubuntu system for PHP plus Redis extension implementation of the relevant information, hope that through this article can help everyone, so that we can achieve this function, the need for friends to refer to the next

How to implement the Redis extension on Ubuntu system

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.

Installing the Redis Extension


sudo apt-get install Git-core

After installation, restart Nginx, PHP5-FPM,

Re-start Nginx


Sudo/etc/init.d/nginx restart

Restart PHP5-FMP


SUDO/ETC/INIT.D/PHP5-FPM restart

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.

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.