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

while loop of python learning notes

python learning notes (8) while loop 1. while cycle In the previous blog, we have learned about the for loop. Here we introduce another loop, while. The syntax of while is very simple. According to its English definition "when...", as long as the following conditional statements of while are ...

Posted by SheepWoolie on Thu, 30 Jan 2020 03:29:17 -0800

Java programming idea enumeration type

Java programming idea enumeration type Basic enum characteristics Call the values() method of enum to traverse the Enum instance. The values method returns the Enum instance array, and the elements in the array are strictly kept in the order when they are declared in enum public enum Shrubbery { ...

Posted by orionblue on Sun, 12 Jan 2020 07:10:41 -0800

Install Grok Debugger locally

1.Ruby installation. Note: do not use the latest 2.2 or 2.3 version of ruby. Some components may not be installed yum -y install openssl-devel gcc wget https://ruby.taobao.org/mirrors/ruby/2.1/ruby-2.1.7.tar.gz tar zxf ruby-2.1.7.tar.gz cd ruby-2.1.7 ./configure --prefix=/usr/local/ruby2.1.7 make && make install echo ...

Posted by minifairy on Sat, 04 Jan 2020 09:06:08 -0800