Install the Redis client phpRedisAdmin in Windows

Source: Internet
Author: User
Tags php redis redis version vc9
Install the Redis client phpRedisAdmin in Windows. recently, apsaradb for Redis is used as the session storage in the tomcat cluster. it also stores high-traffic data. In the debugging process, you need to view the data cached in Redis. by default, the client is quite troublesome and it is found that phpRedisAdmin is a good thing. You only need to install php redis and install the Redis client phpRedisAdmin in Windows.


Recently, apsaradb for Redis was used as the session storage in the tomcat cluster, and some data with high access volume was also stored.
In the debugging process, you need to view the data cached in Redis. by default, the client is quite troublesome and it is found that phpRedisAdmin is a good thing.

You only need to install the redis extension of php, but it is important to note that the php version and the compiler version (vc6 or vc9 or vc11) correspond to each other.

Php redis extended: https://github.com/nicolasff/phpredis/downloads
Download File: phpredis_5.4_vc9_nts.7z

Php: http://windows.php.net/downloads/releases/archives/
Download File: php-5.4.9-nts-Win32-VC9-x86.zip

Decompress all php files to the D:/tools/php directory, and copy the two extended redis files to the D:/tools/php/ext directory.
Modify the configuration file php. ini and add the following two lines:
Extension = php_igbinary.dll
Extension = php_redis.dll

[Note] the sequence must first load php_igbinary.dll, which is not the cause of failure in configuration.

Run phpinfo () to view the following information:
Redis
Redis Support => enabled
Redis Version => 2.2.2

Configure FastCGI of nginx to run php:

# Pass the PHP scripts to FastCGI server listening on Fig: 9000
#
Location ~ \. Php $ {
Root d:/web;
Fastcgi_pass 127.0.0.1: 9000;
Fastcgi_index index. php;
Fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;
Include fastcgi_params;
}

Download phpRedisAdmin
Https://github.com/ErikDubbelboer/phpRedisAdmin/releases

Copy the file to the D:/web directory.

Start nginx and run the FastCGI process of php. I wrote a start. bat startup script:

Echo Starting PHP FastCGI...
RunHiddenConsole D:/tools/php/php-cgi.exe-B 127.0.0.1: 9000-c D:/tools/php. ini

Echo Starting nginx...
RunHiddenConsole D:/tools/nginx/nginx.exe-p D:/tools/nginx

[Note] RunHiddenConsole does not display the command line window.

All done. please visit Redis.
Http: // localhost/phpRedisAdmin/index. php

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.