window-redis安装(注册服务)

window-redis安装(注册服务)

1、下载windows版本的redis(非redis官方发布)
https://github.com/microsoftarchive/redis/releases
https://github.com/tporadowski/redis/releases

2、安装版.msi,按照提示下一步、下一步就好了。

3、zip版

# 注册服务
redis-server --service-install redis.windows.conf --loglevel verbose
# 卸载服务
redis-server --service-uninstall
# 启动服务
redis-server --service-start
# 停止服务
redis-server --service-stop

#*--service-name **name***
#This optional argument may be used with any of the preceding commands to set the name of the installed service. 
#This argument should follow the service-install, service-start, service-stop or service-uninstall commands,
#and precede any arguments to be passed to Redis via the service-install command.

#The following would install and start three separate instances of Redis as a service:
redis-server --service-install --service-name redisService1 --port 10001
redis-server --service-start --service-name redisService1

redis-server --service-install --service-name redisService2 --port 10002
redis-server --service-start --service-name redisService2

redis-server --service-install --service-name redisService3 --port 10003
redis-server --service-start --service-name redisService3

小尾巴~~
只要有积累,就会有进步

你可能感兴趣的:(Redis,windows,redis,windows,服务)