【先定一个小目标】Redis 安装成windows服务-开机自启

时间:2021-11-07 10:41:20

1、第一步安装成windows服务的,开机自启动

redis-server --service-install redis.windows.conf

【先定一个小目标】Redis 安装成windows服务-开机自启

2、启动\关闭

redis-server --service-start
redis-server --service-stop

3、可安装多个实例

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

4、卸载命令

redis-server --service-uninstall