安装redis到系统服务时:
C:\Program Files\Redis>redis-server --service-install redis.windows.conf
报错:
[12116] 10 Dec 10:39:16.588 # HandleServiceCommands: system error caught. error code=1073, message = CreateService failed: unknown error
原因:系统服务中已经存在
解决办法:
先卸载服务:
redis-server --service-uninstall
然后在再安装:
redis-server --service-install redis.windows.conf