(Turn) Original: http://www.cnblogs.com/M-LittleBird/p/5902850.html
To make Redis run under PHP, add the extension file to the Ext extension folder under PHP files
- Php_igbinary.dll
- Php_redis.dll
Modify php.ini configuration items at the same time
Add the following code:
Extension=php_igbinary.dll
Extension=php_redis.dll
Note: Versions of Php_igbinary.dll and Php_redis.dll need to correspond to versions of PHP
One, download the Windows version of Redis
Go to the official website for a long time, found the original on the official website can be downloaded version of the Windows, the official website and no, can only be downloaded on GitHub, the official website only provides the Linux version of the download
Official website: http://redis.io/download
Github:https://github.com/msopentech/redis/tags
Second, the installation of Redis
1. Here is the redis-x64-3.2.100 version, My computer is Win7 64 bit, so download the 64-bit version, enter CMD in the run, and then point the directory to the extracted Redis directory.
2. Start command
Redis-server redis.windows.conf, the display indicates that the boot was successful.
third, set up Redis service
1, as the above although the Redis started, but as soon as a close cmd window, Redis will disappear. So to set up Redis as a service under Windows.
That is, set up here, the first to discover that the Redis service is useless.
2. Set service command
Redis-server--service-install redis.windows-service.conf--loglevel verbose
After entering the command no error, indicating success, refresh the service, you will see a more Redis service.
3. Common Redis service commands.
Uninstall Service: Redis-server--service-uninstall
Open service: Redis-server--service-start
Stop service: Redis-server--service-stop
4. Start the service
5. Test Redis
The installation test was successful.
Here just do simple installation, deployment services use, more in-depth use can go to Redis Chinese network to see the http://www.redis.net.cn/Blog Park also has a lot of deep use, because my blog system needs to use, do a point.
There is a document in the downloaded unpacking package, with detailed instructions,
What are the flaws, please give us a lot of advice, thank you.
Redis installation process under Windows (GO)