CentOS7+mysql5.6 configuration master slave

1, Installation environment Operating system: centos-7-x86_-dvd-1611.iso Database version: mysql-5.6.39-linux-glibc2.12-x86_.tar.gz Database address: 192.168.2.1 (main) 192.168.2.2 (from)   MySQL was installed before and after 5.6 in a different way.   The mysql installation is self-organized. The master-slave configuration is based on ...

Posted on Sat, 04 Apr 2020 20:43:40 -0400 by Kitty

Elasticsearch Mget, GetDocSource, index part update case sharing

bboss is used to realize Elasticsearch Mget, update part information of index documents, GetDocSource and share operation cases of obtaining documents 1. Preliminary preparation Reference documents< Introduction of high performance elastic search ORM development library >Import and configure es client bboss 2.mget operation Simple a ...

Posted on Sat, 04 Apr 2020 20:11:41 -0400 by smilesmita

DBCP C3PO Druid three database connections

If more than one Connection is needed in a project, if the Connection is always obtained and disconnected, resources will be wasted. If a pool is created to manage the Connection, the Connection can be reused. With the pool, we don't need to create the Connection ourselves, but get the Connection object through the pool ...

Posted on Sat, 04 Apr 2020 20:09:24 -0400 by Inkybro

Wechat public platform development and learning

PHP development of this course, the teacher said that the final inspection is to make a WeChat official account, so this is the development of WeChat public platform. Ha ha, it is a new thing to learn.                  Preparation 1. in Wechat p ...

Posted on Sat, 04 Apr 2020 19:49:08 -0400 by msing

Activities start

ActivityThread is indispensable to start an Activity. The entry of ActivityThread is in the main() method: public static void main(String[] args) { ...... Looper.prepareMainLooper(); ActivityThread thread = new ActivityThread(); thread.attach(false); ...... Looper.loop( ...

Posted on Sat, 04 Apr 2020 19:05:19 -0400 by matscott

zookeeper (single machine, pseudo cluster, cluster) deployment

ZooKeeper is a distributed, open-source, distributed application coordination service that enables application configuration management, unified naming service, and state synchronization service in a distributed environment.ZooKeeper is a highly available, high-performance open source coordination service designed for distributed applications, ...

Posted on Sat, 04 Apr 2020 19:03:04 -0400 by freelance84

SpringBoot integrates elastic search and CRUD operation

Configuration preparation Add the following dependencies to the build.gradle file: compile "org.elasticsearch.client:transport:5.5.2" compile "org.elasticsearch:elasticsearch:5.5.2" //apache log4 logs used internally by es 5.x compile "org.apache.logging.log4j:log4j-core:2.7" compile "org.apache.logging.lo ...

Posted on Sat, 04 Apr 2020 18:53:07 -0400 by Popgun

PHP implementation of JS pigmented text encoding and decoding process-aaencode+aadecode

PHP implementation of JS pigmented text encryption and decryption process-aaencode When debugging a JS of a website, a lot of germinating code appears and can be executed successfully. I am curious about this and have implemented the PHP-side encoding and decoding process. For example, the following code outputs a piece of text after execut ...

Posted on Sat, 04 Apr 2020 18:39:09 -0400 by davidska

Logue P1141 01 maze (dfs)

Title Link: https://www.luogu.org/problemnew/show/P1141 For a n*n maze composed of only 01, output the most squares you can walk from a certain point. If the square is 0, you can walk to 1 in four directions, and vice versa. Train of thought: 1. If the number of steps in this cell is greater than 0, it will be output directly. ...

Posted on Sat, 04 Apr 2020 18:39:48 -0400 by azukah

Base64 encoding and decoding

Base64 principle Base64 is a method of representing arbitrary binary data with 64 characters. For binary data, a group of three bytes is encoded as four bytes, that is, 3 × 8bit=4 × 6bit. As shown in the figure below, the three consecutive bytes (8bit) are divided into four 6bits, and then each 6bit high two bits ...

Posted on Sat, 04 Apr 2020 18:33:42 -0400 by Mesden