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