Installing Phpredis extensions and Phpredisadmin tools

Source: Internet
Author: User

get the latest source package from Phpredis git first:
wget https://github.com/nicolasff/phpredis/archive/master.tar.gz

then unzip to the entry directory:
Tar xvf master.tar.gz
CD Phpredis-master

compile, install extensions:
phpize
./configure--enable-redis
Make && make install

then edit php.ini join Extensions=redis.so
Restart the server found PHP hint missing redis.so, follow the directory of the hint redis.so copy the past is OK.

Phpredisadmin is a web tool that manages Redis online and is done based on PHP.
installation is also very simple, go to the web directory
git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git
CD phpredisadmin/
Cat Readme.markdown
git submodule init
git submodule update

then you can access it through the URL. Look at the simple configuration of the config.inc.php
' Servers ' = Array (
0 = Array (
' name ' = ' local server ',//Optional name.
' host ' = ' 127.0.0.1 ',
' Port ' = 6379,
' filter ' = ' * '

//Optional Redis authentication.
                                ),

here are some simple Redis service configurations.
phpredisadmin is allowed to log on anonymously by default. If you want to set it in config, add
' login ' = = Array (
//Username = Password
//Multiple combinations can be used
' admin ' = = Array (
' password ' = ' AdminPassword ',
                                                ),
' guest ' = = Array (
' password ' = ',
' servers ' = = Array (1)//Optional list of servers this user can ACC ESS.
                                                )
                                        ),

Download Predis (Redis client: Predis, Phpredis, Rediska, Redisent, Iredis, here I use Predis, just put under the phpredisadmin can): https:// Github.com/nrk/predis/downloads

mv Predis/*  /usr/local/apache2/htdocs/phpredisadmin/predis/

Installing Phpredis extensions and Phpredisadmin tools

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.