当前位置:网站首页>官方一键安装redis集群
官方一键安装redis集群
2022-08-08 23:30:00 【牵着骆驼迷神】
redis-trib安装
ruby环境准备
wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz
tar xvf ruby-2.3.1.tar.gz
cd ruby-2.3.1
./configure -prefix=/usr/local/ruby
make
make install
wget http://rubygems.org/downloads/redis-3.3.0.gem
sudo gem install -l redis-3.3.0.gem
sudo gem list – check redis gem
cd redis/src
cp redis-trib.rb /usr/local/bin #加入环境
先启动六个redis-server
一键开启命令
redis-trib.rb create --replicas 1 127.0.0.1:8000 127.0.0.1:8001 \
127.0.0.1:8002 127.0.0.1:8003 127.0.0.1:8004 127.0.0.1:8005
边栏推荐
- PHP闭包函数 bingTo的使用
- 微信小程序错误 undefined Expecting ‘STRING‘,‘NUMBER‘,‘NULL‘,‘TRUE‘,‘FALSE‘,‘{‘,‘[‘, got ]解决方案
- AsyncTask的替代方案
- 设计分享|基于单片机的P0口驱动LED闪烁
- (2022牛客多校三)A-Ancestor(LCA)
- 主从延迟原因及解决方案
- Use Mongoose populate to implement multi-table associative storage and query, with complete code included
- (2022牛客多校五)G-KFC Crazy Thursday(二分+哈希/Manacher)
- 【latex异常与错误】There were undefined references.Reference `xxx‘ on page x undefined.参考引用公式编号时发生错误
- 2022杭电多校五 C - Slipper (dijkstra+虚拟结点)
猜你喜欢
![[Pytorch] Study Notes (1)](/img/3d/5e66564bec5c787c87738bcf58c37b.png)
[Pytorch] Study Notes (1)

【PP-YOLOv2】测试自定义的数据集

如何在Android中使用Realm数据库

二叉树 层次遍历 及例题

Use Mongoose populate to implement multi-table associative storage and query, with complete code included

树莓派wiringPi库的使用补充

第二课:概率论

A preliminary study on the use of ndk and JNI

Kubernetes 实现 CI/CD 发布流程

(2022牛客多校四)D-Jobs (Easy Version)(三维前缀或)
随机推荐
sess.restore() 和 tf.import_meta_graph() 在使用时的一些关联
(2022牛客多校四)N-Particle Arts(思维)
树莓派wiringPi库的使用补充
JS中的预编译(AO、GO详解)
深入理解计算系统第三章程序的机器级表达总结
Porting ucos2 code from stm32 to GD32
第二课:概率论
PHP 类函数和对象函数
iptables firewall content full solution
[Tensorflow2] Some interface changes of tensorflow1.x-tensorflow2.x
JS中数组扁平化的几种方法
[Bug solution] ValueError: Object arrays cannot be loaded when allow_pickle=False
mysql 高级知识【order by 排序优化】
ndk和JNI的使用初探
【PP-YOLOv2】测试自定义的数据集
2022牛客多校六 B-Eezie and Pie (dfs)
RecyclerView的多选模式
【Tensorflow2】tensorflow1.x-tensorflow2.x一些接口的转变
(2022杭电多校四)1011-Link is as bear(思维+线性基)
用工具实现 Mock API 的整个流程