predixy -redis代理 支持redis-sentinel和redis-cluster

g++: command not found的解决
 G++没有装或却没有更新
 
以下方法都可以试试:
centos:
yum -y update gcc
yum -y install gcc+ gcc-c++
 
ubuntu:
apt-get update gcc
apt-get install g++
https://github.com/joyieldInc/predixy

下载amd 免安装版

--------------------------

或者下载 需要编译的

 

 cd /etc/yum.repos.d

在安装predixy 之前需要
执行以下命令
yum install automake libtool

此时autoreconf -fvi  版本太低会失败  我们需要修改仓库  wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-archive-6.repo

yum clean all

yum search autoconf

 

 yum install autoconf268

 

autoreconf268 -fvi

 

 

vi predixy.conf

开启哨兵模式

 

 wq保存

vi sentinel.conf

 

 

 shift+: .,$y           ----------->shift+: 开启冒号模式   .代表光标当前为值 $代表结尾  y复制

shift+g 快速定位到最后一行

p 粘贴

 

 我们需要将#注释去掉  光标定位到当前位置

shift+:  开启冒号模式 .,$从光标到结尾 s 代表替换 /#  替换为// 空

:.,$s/#//

 

 删掉哨兵配置   dd

 

 

--------------------------------------------------------------------------

redis 自带集群哨兵无主模型

 

cd /usr/local/redis-6.0.6/utils/create-cluster

 

 

posted @ 2022-06-23 18:45  花心大萝卜li  阅读(117)  评论(0)    收藏  举报