Failed to restart redis.service: Unit redis.service not found.
时间: 2023-12-04 18:50:15 浏览: 200
omap3-restart.rar_restart
在CentOS 7.8上编译安装的Redis-5.0.5版本中,出现"Failed to restart redis.service: Unit redis.service not found."的错误信息。这个错误的原因是在编译安装时,Redis注册的服务名称是"redis_6579",而启动时需要使用完整的服务名称。因此,正确的启动方式是使用以下命令之一:
1. systemctl start redis_6579
2. service redis_6579 start。 [2 [3<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Failed to restart redis-server.service Unit not found](https://blog.csdn.net/m0_67393413/article/details/123923474)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文