In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Edis version: redis-5.0.3.tar.gz
Operating system: completely newly installed centos7.6 system
Use one virtual machine to simulate 6 redis nodes, 3 master,3 slave, and the virtual machine IP is 192.168.220.11
Consistent with the basic process of creating clusters using different IP, multiple virtual machines are not created for convenience.
Start building:
Yum install-y wget gcc gcc-c++
Systemctl stop firewalld.service
Setenforce 0
Tar zxvf redis-5.0.7.tar.gz
Cd redis-5.0.7
Make
Make PREFIX=/usr/local/redis install
Ln-s / usr/local/redis/bin/* / usr/local/bin
Cd utils/
. / install_server.sh
# enter and enter / usr/local/redis/bin/redis-server at the end
Netstat-natp | grep 6379
Vim / etc/redis/6379.conf
Comment out 70 lines
89 protected-mode no turn off security protection
93 port 6379 port is 6379
137 daemonize yes starts as a stand-alone process
833 remove comments and turn on cluster function
841 remove comments, cluster name file settings
847 Cluster timeout Settin
700appendonly yes enables aof persistence
/ etc/init.d/redis_6379 restart
Cd / var/lib/redis/6379
Ls
Primary server
Install rvm
Import key Fil
Gpg-keyserver hkp://keys.gnupg.net-recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
Install rvm
Curl-sSL https://get.rvm.io | bash-s stable
Execution environment variable
Source / etc/profile.d/rvm.sh
List the versions that can be installed by ruby
Rvm list known
Install the ruby2.4.1 version
Rvm install 2.4.1
Use the rubyruby2.4.1 version
Rvm use 2.4.1
View the current ruby2.4.1 version
Ruby-v
Install Redis again
Gem install redis
Both servers are added to 3 network cards
Server 1 192.168.1.101 192.168.1.130 192.168.1.131
Server 2 192.168.1.102 192.168.1.132 192.168.1.133
Create a cluster
Redis-cli-- cluster create 192.168.1.101 cluster-replicas 6379 192.168.1.130 cluster-replicas 6379 192.168.1.131
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.