The first micro service application (Eureka) released by docker under centos7

1. Package under windows Microservice applications are packaged by maven, mvn clean package is executed in pom.xml of the project, or Maven package is directly packaged by idea or eclipse The above operation will generate the file microservice-discovery-eureka-0.0.1-SNAPSHOT.jar package in the target directory of the project 2. Copy microservic ...

Posted by ik on Fri, 06 Dec 2019 11:26:21 -0800

CentOS MySQL create database - encoding settings

Create database mysqladmin -h '192.168.2.233' -u root -p create namc; View newly created database encoding mysql> SHOW VARIABLES LIKE 'character%' -> ; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_s ...

Posted by disconne on Fri, 06 Dec 2019 10:59:26 -0800

New functions | MySQL 8.0 multi valued indexes

As the name implies, multiple secondary index entries can be created for the same Primary key in the index. In fact, the basic functions of array type have been supported, and the secondary index is built based on array. This means that the number of records in the secondary index can be more than the number of records in the clustered index, s ...

Posted by jaret on Fri, 06 Dec 2019 01:35:55 -0800

Basic usage of Beetl template [variables, cycles, conditions] - Beetl video course

This video makes a list of the blog's home page; Content introduction: springboot integrates beetlsql; uses for loop, if control statement, virtual property, variable definition, etc Learn beetl directory together: https://my.oschina.net/u/1590490?tab=newest&catalogId=6214598 Author: GK Integrate BeetlSql to query database Introducing d ...

Posted by kim on Fri, 06 Dec 2019 00:55:41 -0800

LNMP architecture introduction, MySQL and PHP installation, Nginx introduction

LNMP architecture introduction Unlike LAMP, Nginx provides web Services And php exists as an independent service, which is called php FPM Nginx processes static requests directly, and dynamic requests are forwarded to PHP FPM MySQL reinstallation MySQL is installed by compiling free binary installation package. You need to delete the corre ...

Posted by Jason28 on Thu, 05 Dec 2019 20:56:00 -0800

php operation solr7.5 data imported through mysql

solr installation and configuration download Download address: http://www.apache.org/dyn/closer.lua/lucene/solr/7.5.0 Unzip directly after downloading. To configure Create a new core Enter the directory after decompression (replaced by ~ / Solr root /), enter ~ / Solr root / server / Solr /, create a new directory, and define the directory nam ...

Posted by adrianuk29 on Thu, 05 Dec 2019 17:20:28 -0800

Mybatis has its own connection pool for reading

1. Initialization of data source. The initialization entry is provided by SqlSessionFactoryBuilder.build(InputStream inputStream, String environment, Properties properties) method public SqlSessionFactory build(InputStream inputStream, String environment, Properties properties) { try { XMLConfigBuilder parser = new XMLConfigBuilder ...

Posted by kyme on Thu, 05 Dec 2019 17:10:44 -0800

Keep alive + nginx + Apache + Mysql to realize highly available and load balanced websites (Part 2)

I. environment introduction host name ip Installation software nginx_mysql_m 192.168.255.67 keepalived+nginx nginx_mysql_s 192.168.255.66 keepalived+nginx mysql1 192.168.255.52 mysql,mysql-server mysql2 192.168.255.57 mysql,mysql-server II. keepalived configurationThe configuration of keepalived is similar to that in the previous ...

Posted by theblacksheep on Thu, 05 Dec 2019 03:15:02 -0800

Python MySQL extracts the first N data of each group in the table

In the process of large-scale data processing, sometimes it is necessary to take out a part of data by groups as a reference for the whole data. For example, there is a table [1], which can be divided into 200 groups by column [1]. Now we want to take 10 records from each group of these 200 groups as a representative. We can ope ...

Posted by techiefreak05 on Thu, 05 Dec 2019 03:10:24 -0800

Mysql linked table query exercise

Exercises Table 1 mysql> create database linux50 charset utf8; Query OK, 1 row affected (0.00 sec) mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | linux50 | | ming | | mysql | | performance_schema | | test | | world ...

Posted by xionhack on Wed, 04 Dec 2019 23:01:40 -0800