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