Tools
Windows Install Redis Service by Chocolate
Recently, a company's project that use Redis hot standby intead of Asp.Net state service provider. So I look around a lot of technical resources and find a s…
Recently, a company’s project that use
Redishot standby intead ofAsp.Netstate service provider. So I look around a lot of technical resources and find a solution: aspnet-redis-providers
And the detail see that article Use Redis service instead of Asp.Net session provider
This article talk about How to install redis in windows
Chocolate Install Redis
# install choco
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
# install redis-64
choco install redis-64
Redis Configuration
Install Redis Service
Sample -
redis.windows.conf
# default port 6379
redis-server --service-install redis.windows.conf --loglevel verbose
# port 6380
redis-server --service-install --service-name Redis6380 --port 6380
Uninstall Redis Service
redis-server --service-uninstall --service-name Redis6380 --port 6380
Redis Service Operation
# start
redis-server --service-start
# stop
redis-server --service-stop
Redis Sentinel Configuration
Sample -
redis.sentinel.conf
redis-server --service-install --service-name redisSentinel sentinel.conf --sentinel
And the more
Redisplease see the Redis Tutorials~