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.