Install Reids under Windows
The Redis installation package from Microsoft is available directly to download as needed: Https://github.com/MicrosoftArchive/redis/releases, unzip and use
Start Redis Service One,
Start the service by starting the DOS command in the Redis directory and then running Redis-server.exe
Two
For ease of use, set up Redis for Windows self-service
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
Three
Creating a new Startredis.bat script is perfect, the content is as follows:
@echo Offecho Try to stop Redis–server...redis-server--service-stopechodone! Echo Try to start Redis-server...redis-server--service-startechodone! Pause
Redis Extensions:
PHP Extensions Download: http://windows.php.net/downloads/pecl/snaps/redis/
Download the corresponding version according to the nts-vc15-x64 three elements in phpinfo.php
Download the extracted php_redis.dll into the PHP ext directory
Then modify PHP.ini, join
; php-redisextension=php_igbinary.dllextension=php_redis.dll
Restart over!
Windows installation Redis service and Php_redis extensions