错误:HandleServiceCommands: system error caught. error code=1072, message 断电之后,Redis启动不了

Redis启动不了的问题

  1. Redis 设置好密码,但是断电之后,不需要密码都可以访问redis。

解决方案如下:

D:\>cd D:\software\Redis-x64-3.2.100

D:\software\Redis-x64-3.2.100>redis-server --service-install redis.windows.conf
[15376] 18 May 14:45:52.995 # HandleServiceCommands: system error caught. error code=1072, message = CreateService failed: unknown error

D:\software\Redis-x64-3.2.100>redis-server --service-start
[14684] 18 May 14:46:03.887 # HandleServiceCommands: system error caught. error code=1058, message = StartService failed: unknown error

D:\software\Redis-x64-3.2.100>redis-server --service-stop
[16284] 18 May 14:46:14.362 # Redis service successfully stopped.

D:\software\Redis-x64-3.2.100>redis-server --service-uninstall
[11336] 18 May 14:46:21.545 # Redis service successfully uninstalled.

D:\software\Redis-x64-3.2.100>redis-server --service-install redis.windows.conf
[11784] 18 May 14:46:39.006 # Granting read/write access to 'NT AUTHORITY\NetworkService' on: "D:\software\Redis-x64-3.2.100" "D:\software\Redis-x64-3.2.100\"
[11784] 18 May 14:46:39.007 # Redis successfully installed as a service.

D:\software\Redis-x64-3.2.100>redis-server --service-start
[4536] 18 May 14:46:47.587 # Redis service successfully started.

D:\software\Redis-x64-3.2.100>

你可能感兴趣的:(Java,redis)