Windows redis:https://github.com/msopentech/redis/releases
Linux Redis:https://github.com/phpredis/phpredis
Open a cmd window using the CD command to switch directories to C:\redis run redis-server.exe redis.windows.conf .
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.windows.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 the Redis directory to run the redis-cli.exe-h 127.0.0.1-p 6379 .
You can do a simple test after entering.
Set name Laowangok Get name " Laowang "
The above is a simple installation of redis but what if the shutdown will shut down the service and add it to the system service, even if it's turned off.
Set up service commands
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,
Redis get mode and install (Windows)