Failed to restart redis-server. service: Unit not found.
1. Problem description
Redis-5.0.5 is compiled and installed on CentOS 7.8. The port is 6579. The following error occurs when restarting:
# systemctl start redis
Redirecting to /bin/systemctl restart redis-server.service
Failed to restart redis-server.service: Unit not found.
2. Cause analysis
This is because during compilation and installation, redis registers the service name redis_6579, and the full service name is required for startup.
3. Correct startup mode
# systemctl start redis_6579
or
# service redis_6579 start
Read More:
- [Solved] Windows Redis Error: Could not create server TCP listening socket 127.0.0.1:6379: bind…
- Redis Startup Error: Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- [Solved] Project Startup Error: Redis health check failed:Unable to connect to localhost6379
- [Solved] Project Startup Error: Redis health check failed: Unable to connect to localhost6379
- Redis: DENIED Redis is running in protected mode [How to Solve]
- [Solved] redis-server.exe Flashback Error: QForkMasterInit: system error caught. error code=0x000005af, message=Virtual
- [Solved] Jedis connect and operate Redis error: Failed to create socket和connect timed out
- [Solved] Redis Error: org.springframework.data.redis.RedisConnectionFailureExceptionjava.net.SocketTimeoutException
- [Solved] Zookeeper cluster error: Error contacting service It is probably not running. (alicloud server)
- [Solved] java.lang.IllegalAccessError: class org.springframework.data.redis.core.$ Proxy237 cannot access its superinterface org.springframework.data.redis.core.RedisConnectionUtils$RedisConnectionProxy
- [Solved] Redis Client On Error: Error: write ECONNABORTED Config right
- [Solved] Redis Error: Error condition on socket for SYNC: No route to host
- [Solved] SpringBoot+Dubbo Startup Error: Fail to start server(url: dubbo://192.168.0.9:20880/service
- [Solved] SpringBoot+Dubbo Startup Error: Fail to start server(url dubbo192.168.0.920880service
- [Solved] Redis error: NOAUTH Authentication required.
- [Solved] Redis Client On Error Error connect ECONNREFUSED 11.20.200.6379 Config right
- The java springboot websocket service server actively closes the connection and causes java.io.EOFException to be thrown
- [Solved] Windows redis startup error: Error code: [35256]…
- The controller error: the XX method in the service cannot be found
- JAVA Connect Redis Error: stop-writes-on-bgsave-error option