In PHP, the configuration of the Redis environment [Windows10Test] was officially found from Redis. io. the official version of redis for windows is not provided:
The Redis project does not officially support Windows. However, the Microsoft Open Tech group develops and maintains this Windows port targeting Win64. Learn more
Windows version maintained by [MSOpenTech] (https://github.com/MSOpenTech/redis), release version download: [https://github.com/MSOpenTech/redis/releases] (https://github.com/MSOpenTech/redis/release)
Redis file introduction:
- Redis-benchmark.exe # benchmarking
- Redis-check-aof.exe # aof
- Redischeck-dump.exe # dump
- Redis-cli.exe # client
- Redis-server.exe # Server
- Redis. windows. conf # configuration file
Start Redis server:
> Redis-server.exe redis. windows. conf
Download php_redis.dll:
Php official has provided (https://pecl.php.net/package/redis), optimistic about the php version of the corresponding dll, at the same time to select the number of php, you can view the following code:
Add
;[redis]extension=php_redis.dll
Restart the server. everything is OK!
Above