openeuler 安装redis
时间: 2023-10-15 14:28:06 浏览: 126
Linux安装redis
要在openeuler上安装redis,可以按照以下步骤进行操作:
1. 进入/usr/bin目录并启动redis:
```
cd /usr/bin
./redis-server /etc/redis.conf
```
2. 然后,在/etc/init.d/下会生成redis_端口.conf文件,这样你可以方便地启动和暂停redis服务:
```
/usr/local/bin/redis-server
```
要连接到redis客户端,可以使用以下命令:
```
/usr/local/bin/redis-cli
```
3. 如果你不确定redis-server的默认安装位置,可以使用以下命令找到它:
```
find / -name 'redis-server'
```
根据这些步骤,你可以在openeuler上成功安装并启动redis。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [OpenEuler(或Centos7)内网yum源搭建redis集群(一主二从三哨兵)](https://blog.csdn.net/qiaojunt/article/details/131115797)[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_2"}}] [.reference_item style="max-width: 50%"]
- *2* [openEuler上安装redis](https://blog.csdn.net/qq_17040587/article/details/128543112)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文