205 Ruby first experience: array, hash and regular expression [Rails back-end development training camp]

The previous lectures introduced Ruby's basic data objects "string" and "value". Ruby has more than these two data objects. The structure of data objects involved in most Ruby programs is much more complex. This lecture summarizes arrays, hashes, and regular expressions. Don't worry, the knowledge here will be briefly explai ...

Posted by TheCase on Wed, 24 Nov 2021 15:46:20 -0800

Redis installation and cluster deployment

1, redis compilation and installation Download the installation package, unzip it and compile it Edit the script file of the built-in installer and comment the following [root@server1 redis-6.2.4]# cd utils/ [root@server1 utils]# vim install_server.sh [root@server1 utils]# ./install_server.sh xs ##Execute installation script Afte ...

Posted by idweb on Fri, 24 Sep 2021 08:52:33 -0700

Python-Dictionary Basic Usage

Dictionaries The dictionary refers to 1. How to access and modify information in a dictionary. 2. How to traverse the data in a dictionary, 3. A list of dictionaries to store, a dictionary to store lists, and a dictionary to store dictionaries. A dictionary is a series of key-value pairs that can be u ...

Posted by andreea115 on Fri, 26 Jun 2020 17:49:21 -0700

virtualenv -- python virtual sandbox

notes preceding the text of a book or following the title of an article It is said that virtualenv, fabric and pip are the three magic tools of Python. Whether you agree or not, at least first, pip is often used now. virtualenv heard it for the first time, but I have to try it. 1, Installation pip install virtualenv Because I have already insta ...

Posted by cbrooks on Thu, 30 Apr 2020 15:51:32 -0700

Problems of brew installation in Mac os

It's finally done! HomeBrew homebrew is a good installation tool under OS X, similar to apt get under linux However, from last summer vacation, the installation of this software can not be installed, baidu several times can not.. Several more installations were attempted during.. Uninstall, re install several times, or not.. This is an e ...

Posted by kirk112 on Mon, 20 Apr 2020 09:49:43 -0700

redis-4.0.2 cluster building

Cluster building environment, one Centos7 virtual machine (192.168.217.128), six redis nodes redis-4.0.2 Install redis: follow the steps on the official website, and we won't talk about it here. Enclosed address https://redis.io/download, Note that there may be errors (redis tarError) during the installation process. ...

Posted by ndorfnz on Thu, 02 Apr 2020 06:30:40 -0700

redis highly available cluster

1. Preface Redis is the largest cache middleware we use today, and it is widely used because of its powerful, efficient and convenient features.Redis released 3.0.0 in 2015, officially supporting redis clusters.This brings an end to the era of redis without clusters, which used to be Twemproxy published by twitter and codis developed by pea po ...

Posted by snarkiest on Sat, 14 Mar 2020 13:18:07 -0700

Creation of redis cluster, detailed description and validation of ERR syntax error for redis cluster card slot migration error

Preface Before redis 5.0.0, the script redis-trib.rb written by ruby was used to operate redis cluster. The disadvantage of this is that Ruby and gems environment need to be installed. There is no Ruby environment such as redis-trib.rb in the official docker image, which needs to be installed by itself. It is time-consuming, complex and not eas ...

Posted by windjohn on Sun, 01 Mar 2020 17:51:36 -0800

How to build Redis cluster?

Article directory Preface I. environment 1.1: Environment 1.2: purpose of the experiment 2: Experimental process 2.1: deployment of Redis from master-slave server 2.2: master-slave server configuration file modification 2.3: install rvm and RUBY control cluster software on the main server 2.4: th ...

Posted by minou on Fri, 07 Feb 2020 23:20:53 -0800

Redis details - cluster

Redis details (7) - cluster Before version 3.0 of redis, high availability (HA) can be achieved through Redis Sentinel. After version 3.0, Redis Cluster was officially launched. Its main purpose is to achieve data sharding, but it can also achieve ha, which is currently recommended by the government. In the Redis Sentinel mode, each node needs ...

Posted by gardnc on Mon, 03 Feb 2020 06:59:45 -0800