Home > Article > Backend Development > Install phpRedisAdmin under contos
Since RedisDesktopManager is very time-consuming to open redis with large amounts of data, and also because Alibaba Cloud’s kvstore cannot be accessed from the external network, I installed a phpRedisAdmin as mentioned on the Internet. Let’s talk about what I did when connecting to kvstore. If you encounter any problems, record the installation steps.
The server must have an environment that can run php normally. If not, please install it yourself.
1, first download phpredis
Quote
cd /home/download
wget https://github.com/nicolasff/phpredis/archive/master.tar.gz
You can download it without .tar.gz At the end of the file, just change the mv name
tar -xzvf master.tar.gz
cd phpredis-master
Compile and install the extension:
phpize
./configure --enable-redis
make && make install
2. Modify the php.ini file
Reference
vi /etc/php.ini
Under the line; ##extension_dir = "./", add the following code:
extension_dir = "/usr/ lib64/php/modules"
extension=redis.so
3, install phpRedisAdmin
Quote
cd /home/www
git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git
cd phpRedisAdmin/
git clone https://github.com/nrk/predis.git vendor
git submodule init
git submodule update
There will be a phpRedisAdmin folder in the /home/www directory, enter In this folder, modify two files
reference
cd /home/www/phpRedisAdmin/includes
vi config.sample.inc.php
'servers' => array(
array(
'name' => 'kvstore', // Optional name.
'host' => 'xxxxxxxxxxxxxxxx', //kvstore link address xxxx.xxx.xkvstore.aliyuncs.com
'port' => 6379,
'filter' => '*',
'auth' > array(
'admin' => array(
'password' => 'admin',
),
Then modify the index.php file
Change this in the original file Comment out the two lines
//$databases = $redis->config('GET', 'databases');
Modified to
$databases = 16;
Finally, restart your php container, such as nginx or apache, and you can log in.