Non relational database - redis cluster

redis cluster, experimental environment: two servers, six nodes, three network cards for each server Six nodes, three masters, three replicas Install redis on the primary server [root@localhost ~]# yum install gcc gcc-c++ make -y #Install environment package [root@localhost ~]# mkdir /abc [root@localhost ~]# Mount.cifs / / 192.168.100.25/redi ...

Posted on Tue, 17 Dec 2019 14:54:45 -0800 by nvidia

Mongo 4.0.0 plus user authentication

I. database version mongo 4.0.0 II. Add user authentication for mongo 1. Create super user mongo #Note the version here (confirm that mongo is the same as the mongo of the added user) MongoDB shell version: 4.0.0 db.createUser({user:"root",pwd:"root",roles:[{role:"userAdminAnyDatabase",db:"admin"}]}) Prompt error: 20 ...

Posted on Tue, 17 Dec 2019 14:44:44 -0800 by Waldir

Win32 thread synchronization - atomic access

1. Description of atomic access Situation: most of the situation in thread synchronization is related to atomic access. Function: atomic access can ensure that a thread can access resources without other threads accessing the same resources. Reason: Windows is a preemptive multithreading environment. When multiple threads opera ...

Posted on Tue, 17 Dec 2019 14:37:42 -0800 by EricTRocks

The process of installing mysql5.6 in centos7

The premise is that the Centos environment is good and the relevant software packages have been installed. 1. Create a user and modify the owner of the created data directory [root@bogon ~]# useradd -M mysql -s /sbin/nologin [root@bogon ~]# mkdir /data [root@bogon ~]# chown -R mysql:mysql /data/ 2. Install the required dependent software ...

Posted on Tue, 17 Dec 2019 14:14:40 -0800 by Ell20

The principle of making rolling broadcast chart

Rolling carousel chart The key to the layout of rolling broadcasting chart: all pictures are side by side, so the width of unit should be wide enough. Clone the first picture and append it to the last one Right button pull strategy: pull first, then blink Left button pull strategy: blink first, then pull As with the breath cha ...

Posted on Tue, 17 Dec 2019 14:08:35 -0800 by stevietee

hdu 5724 Chess (SG function)

Title Link: hdu 5724 Meaning: there is a board with n rows and 20 columns. There are some pieces distributed on the board. A and B take turns to play chess. A foreman can put a piece in the first space on his right (that is, if there is a piece on the right, you can skip it and move one step to the right if you don't have one) ...

Posted on Tue, 17 Dec 2019 13:39:21 -0800 by wanted420

android -------- ConstraintLayout Guideline and Barrier (IV)

Previous articles Introduction to ConstraintLayout (1) ConstraintLayout constraint attribute (2) ConstraintLayout aspect ratio and offset ratio (3) This post mainly explains: Guideline and Barrier Guide line (understand, I don't use much in actual use) When you need an anchor at any position, you can use the guide line to help you locate ...

Posted on Tue, 17 Dec 2019 13:33:29 -0800 by viv

python script monitor - using python language to monitor the execution of python scripts (logging)

Requirement: the existing crawler (named CNSubAllInd) needs to be kept running in the background all the time (if the execution is finished, restart it immediately, and continue to execute), and record its running log. The logging module of python is used to record the log, and the subprocess module is used to execute the command interactively ...

Posted on Tue, 17 Dec 2019 13:15:12 -0800 by jdaura

Spring uses RedisTemplate to store key value in disorder

Recently, when learning the integration of SpringBoot and Redis, I found a problem: the key values stored through RedisTemplate are all hexadecimal random codes: 127.0.0.1:6379> keys * 1) "\xac\xed\x00\x05t\x00\x04name" Find two solutions by consulting the data.   (1) use StringRedisTemplate to replace RedisTemplate, which is a more el ...

Posted on Tue, 17 Dec 2019 13:06:47 -0800 by microthick

SPI of Dubbo source code analysis

I. overview This article introduces adaptive extension, the implementation of getadaptive extension(). Many functions of the ExtensionLoader class itself also use adaptive extensions. Includes the ExtensionFactory extension. Generally speaking, the logic of adaptive extension is: when calling the method of extension point, automatically judge ...

Posted on Tue, 17 Dec 2019 12:46:03 -0800 by feddie1984