Windows Environment assembles Redis client Phpredisadmin

Source: Internet
Author: User
Tags php download php redis redis version vc9
Windows Environment Installation Redis client Phpredisadmin


Recently, using Redis as a session store in a Tomcat cluster also stores some data with high traffic.
In the process of debugging, you need to look at the data cached in Redis, the default client is more troublesome, and finally found that phpredisadmin is a good thing.

You only need to install the Redis extension for PHP, but it is important to note that the version number of PHP corresponds to the version of the compiler (VC6 or Vc9 or VC11).

Download address for the PHP redis extension: https://github.com/nicolasff/phpredis/downloads
Download file: phpredis_5.4_vc9_nts.7z

PHP Download Address: http://windows.php.net/downloads/releases/archives/
Download file: Php-5.4.9-nts-win32-vc9-x86.zip

Unzip all PHP files into the d:/tools/php directory and copy the Redis extension's two files to the D:/tools/php/ext directory
Modify the configuration file PHP.ini add the following two lines:
Extension=php_igbinary.dll
Extension=php_redis.dll

"Note" Order to load Php_igbinary.dll First, this is not a lot of reasons for the unsuccessful configuration.

Run Phpinfo () to see the following information stating that it has been successful:
Redis
Redis support = Enabled
Redis Version = 2.2.2

Configure the Nginx FastCGI mode to run PHP:

# Pass the PHP scripts to FastCGI server listening on 127.0.0.1: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 files to the D:/web directory.

Start Nginx and run PHP FastCGI process, 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/php.ini

Echo Starting Nginx ...
Runhiddenconsole d:/tools/nginx/nginx.exe-p D:/tools/nginx

"Note" Runhiddenconsole function is not to display the command line window

Come on, have a look at Redis.
http://localhost/phpRedisAdmin/index.php

  • Related Article

    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.