报错:D:ProgramFiles
edis>redis-server.exe --service-install redis.windows.conf --loglevel verbose
[12820] 06 Sep 11:00:26.431 # HandleServiceCommands: system error caught. error code=1073, message = CreateService failed: unknown error
[12820] 06 Sep 11:00:26.431 # HandleServiceCommands: system error caught. error code=1073, message = CreateService failed: unknown error
原因:系统服务中已经存在
解决办法:
1)先卸载服务:
redis-server --service-uninstall
2)然后再安装:
redis-server--service-install redis.windows.conf
启停:
启动服务:redis-server --service-start
停止服务:redis-server --service-stop