Redis5.0.7 cluster building (latest version of actual combat!!!)

Experimental environment Two Centos 7 virtual machines are added with three network cards to simulate the real situation of six servers Server role IP address Master node M1 192.168.142.130 Master node M2 192.168.142.145 Master node M3 192.168.142.146 Slave node S1 192.168.142.143 Slave node S2 192.168.142.147 Slave node S3 19 ...

Posted on Wed, 11 Dec 2019 13:10:58 -0800 by hwttdz

redis three master three slave deployment

Server A: 192.168.3.188 centos7Server B: 192.168.3.189 centos7Turn off firewalld firewall and selinux;Redis version 4.0.1, at least 6 sets of redis cluster yum -y install wget vim tcl gcc make mkdir –p /usr/local/redis cd !$ wget http://download.redis.io/releases/redis-4.0.1.tar.gz tar –xvf redis-4.0.1.tar.gz make make test-No mistake. Go on / ...

Posted on Mon, 09 Dec 2019 14:40:48 -0800 by Ruud Hermans

k8s using openebs to realize dynamic persistent storage

brief introduction This article introduces how to use openebs to provide k8s with the function of dynamic pv application. iscsi provides the underlying storage function, and openebs manages iscsi. Currently, only pv's ReadWriteOnce access mode is supported Access mode is only a capability description, not a mandatory one. For the use of pv with ...

Posted on Wed, 04 Dec 2019 01:32:56 -0800 by Sander

The concept and significance of 56 μ function template

How many ways to exchange variables in C + +? How to exchange variables Define macro code block Defined function Programming experiment: exchange of variables #include <iostream> #include <string> using namespace std; #define SWAP(t, a, b) \ { \ t c = a; \ a = b; \ ...

Posted on Sat, 30 Nov 2019 07:31:24 -0800 by mars_rahul

Centos php Extension Install gd Library Method

The second server of the website runs mainly in Python/Ruby and sometimes needs to run PHP scripts simply, so PHP is also installed. The environment is Nginx+php-fpm. PHP is compiled and installed from source code, so it is a minimal installation even without the mysqli extension.You need to use the GD library today to find that there is no GD ...

Posted on Wed, 27 Nov 2019 18:49:45 -0800 by Sturm

Automatically adding version number by using gulp4.x to update static resource version in front end

Guide reading Every time the project is published, there will be caching problems, resulting in page not updating, especially for wechat browser, the caching situation is more serious. Then using gulp to add version number to js and css automatically can solve the problem of cache. There are generally two methods in ...

Posted on Sat, 09 Nov 2019 11:46:02 -0800 by packland

Structure of GO Foundation

1. What is a structure In GO language, arrays can store data of the same type, but in structure we can define different data types for different items. A structure is a data set composed of a series of data of the same type or different types. 2. What is instantiation? The definition of Go structure is only a description of memory layout. On ...

Posted on Wed, 06 Nov 2019 16:40:46 -0800 by TheVoice

Analysis of RT thread device driving UART

OS version: RT thread 4.0.0 Chip: STM32F407 RT thread's serial driver framework is familiar with Linux, which is divided into I/O device framework + device bottom driver; 1. Initialization and use of serial device Register the enabled UART obj [] with the device rtthread_startup --> rt_hw_usart_init() --> rt_hw_serial_register --> ...

Posted on Tue, 05 Nov 2019 07:20:53 -0800 by rcatal02

Yanghui triangle in algorithm practice, line k of Yanghui triangle

1. Yanghui triangle Given a nonnegative integer named numRows, the first numRows of Yanghui triangle are generated. In Yanghui triangle, each number is the sum of the numbers on the top left and the top right. Example: Input: 5 Output: [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] java class Solution { ...

Posted on Sat, 02 Nov 2019 01:31:34 -0700 by Neomech

redis cluster mode deployment

I. construction of Redis cluster mode There are three types of redis cluster deployment: master-slave, sentinel and cluster. Due to the launch of the new application a few days ago, a set of redis cluster needs to be deployed. Now it is documented to record the deployment process. Environment introduction ip software package System version ...

Posted on Tue, 22 Oct 2019 07:19:55 -0700 by t3hub3rz