Installing Redis under Window

Source: Internet
Author: User
Tags phpinfo vc9 install redis



Redis is fully open source free, adheres to the BSD protocol and is a high-performance Key-value database.





I. Installing Redis under Window


https://github.com/MicrosoftArchive/redis/releases directly download the mis file installation, then jump to the following steps directly into the PHP configuration section











1.2. Install Redis under Window (This is the second method, not recommended)


:https://github.com/dmajkic/redis/downloads.









Redis supports 32bit and 64bit to download. Depending on your actual situation, select the 64bit content CP to the custom drive letter installation directory named Redis.


such as C:\reids


Open a CMD window using the CD command to switch directories to C:\redis run







If you want to be convenient, you can add the path of Redis to the environment variables of the system, so as to save the path again, the latter redis.conf can be omitted, if omitted, the default is enabled. After entering, the following interface is displayed:


At this time another cmd window, the original do not close, otherwise you will not be able to access the server. Switch to Redis directory to run Redis-cli.exe-h 127.0.0.1-p 6379. Set key value pair set MyKey ABC remove key value pair get MyKey










Second, PHP configuration


php_redis.dll:http://windows.php.net/downloads/pecl/snaps/redis/3.1.4/


Windows.php.net-/downloads/pecl/snaps/redis/3.1.4/
[To Parent Directory]

9/27/2017 10:54 AM        <dir> logs
9/27/2017 10:36 AM       491523 php_redis-3.1.4-7.2-nts-vc15-x64.zip
9/27/2017 10:48 AM       471186 php_redis-3.1.4-7.2-nts-vc15-x86.zip
9/27/2017 10:43 AM       491628 php_redis-3.1.4-7.2-ts-vc15-x64.zip
9/27/2017 10:54 AM       471166 php_redis-3.1.4-7.2-ts-vc15-x86.zip








Take a look at your phpinfo information disabled


Nts-vc15-x64


Http://windows.php.net/downloads/pecl/releases/igbinary/1.2.1/

Windows.php.net-/DOWNLOADS/PECL/RELEASES/IGBINARY/1.2.1/
[To Parent Directory]

8/29/2014 10:11 AM        <dir> logs
8/29/2014 10:06 AM       116807 php_igbinary-1.2.1-5.3-nts-vc9-x86.zip
8/29/2014 10:11 AM       117210 php_igbinary-1.2.1-5.3-ts-vc9-x86.zip
8/29/2014  9:57 AM       117739 php_igbinary-1.2.1-5.4-nts-vc9-x86.zip
8/29/2014 10:01 AM       118314 php_igbinary-1.2.1-5.4-ts-vc9-x86.zip
8/29/2014  9:38 AM       115405 php_igbinary-1.2.1-5.5-nts-vc11-x64.zip
8/29/2014  9:47 AM       120347 php_igbinary-1.2.1-5.5-nts-vc11-x86.zip
8/29/2014  9:43 AM       117289 php_igbinary-1.2.1-5.5-ts-vc11-x64.zip
8/29/2014  9:52 AM       121378 php_igbinary-1.2.1-5.5-ts-vc11-x86.zip

Nts-vc11-x64


Will download the extracted php_redis.dll into the PHP ext directory, and then modify the php.ini, join


; Php-redisextension=php_igbinary.dllextension=php_redis.dll


Restart IIS to view phpinfo information about the Redis extension





Iii. joining Redis to Windows system services (in the first step, the installer automatically creates the service, 1.2 steps to see)


Redis can be installed as a Windows service, starting from boot, the command is as follows:


Redis-server--service-install redis.windows.conf


Once installed, you can see that Redis is already a Windows service:






However, after installation, Redis does not start, and the Start command is as follows:





Redis-server--service-start


Stop command:


Redis-server--service-stop


You can also install multiple instances


redis-server --service-install –service-name redisService1 –port 10001
redis-server --service-start –service-name redisService1
redis-server --service-install –service-name redisService2 –port 10002
redis-server --service-start –service-name redisService2
redis-server --service-install –service-name redisService3 –port 10003
redis-server --service-start –service-name redisService3


Uninstall command:


Redis-server--service-uninstall


Last hint: 2.8 version of the 32-bit system is not supported, 32-bit system to download the 2.6 version. Version 2.6 is not as easy to deploy as above



Installing Redis under Window


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.