zabbix Chinese character scrambling problem, three solutions summary. There's always a way for you

Method 1: replace font Modify web front end VIM of zabbix / www / HTML / zabbix / include / definitions.inc.phpReplace DejaVuSans with simkai in two places define('ZBX_FONT_NAME', 'DejaVuSans'); define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); Replace DejaVuSans with simkai define('ZBX_FONT_NAME', 'simkai'); define('ZBX_GRAPH_FONT_NAME', 'simkai ...

Posted by freshclearh2o on Wed, 04 Dec 2019 02:54:11 -0800

C ා dynamically create database 3 (MySQL)

The previous instructions use EF to dynamically create a database and a table. The database uses SQL SERVER2008, which is different when MYSQL is used I. add EntityFramework.dll, System.Data.Entity.dll, MySql.Data, MySql.Data.Entity.EF6 Note: Entity Framework 5.0.0 (it seems that the latest 6.X does not support mysql) 2. To add dll files, you c ...

Posted by nmpku on Wed, 04 Dec 2019 00:09:24 -0800

Technology sharing | thinking about MySQL show processlist with negative time

Author: Gao Peng At the end of the article, there is his book "in-depth understanding of MySQL master-slave principle 32", in-depth understanding of MySQL master-slave, GTID related technical knowledge. I. source of problems This is a question that a friend asked me. The question is as follows: what happens when the Worker thread s ...

Posted by Wildthrust on Tue, 03 Dec 2019 23:20:10 -0800

PHP dependency injection

How to call a method in a class: $class = new class();$class->fun() Dependency injection pattern is used to reduce the coupling between programs There are three modes of dependency injection: setter method injection Focus on setter method injection combined with ArrayAccess /** * Class Di * @property People */ class Di implements ArrayAc ...

Posted by Rebel7284 on Tue, 03 Dec 2019 23:09:05 -0800

Hive-2.3.4 installation (upgrade from Hive-1.2.2)

Download Hive installation package from website Modify hive-site.xml (version 2.3.4 does not have this file to create directly) <?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <configuration> <property> <name>javax.jdo.option. ...

Posted by ryadex on Tue, 03 Dec 2019 14:14:21 -0800

MySQL restores single table data with full database backup data

When backing up the database, a full database backup is used, but for some reasons, the data of a table needs to be rolled back to the backup database. If the entire database needs to be rolled back, it will take time, because this table may only have tens of meters, but other tables may have tens of hundreds of G, so the tables that need to be ...

Posted by paulchen on Tue, 03 Dec 2019 11:20:06 -0800

DBCP database connection pool

DBCP database connection pool DBCP(DataBase Connection Pool) When developing a project, we need to constantly interact with the database. In java, using JDBC to connect to the database every time we connect to the database, we need to load the driver, get the connection, destroy the connection and other steps, which takes a l ...

Posted by Stagnate on Tue, 03 Dec 2019 10:48:25 -0800

MySQL - mmm high availability (practice!)

Advantages and disadvantages of MySQL-MMM: Advantages: high availability, good scalability, automatic failover, for primary and primary synchronization, only one database write operation is provided at the same time to ensure data consistency. Disadvantages: the Monitor node is a single point, which can be combined with Keepalived to achieve ...

Posted by jozard on Tue, 03 Dec 2019 07:33:34 -0800

docker private warehouse Harbor

I. download and installation of relevant software #Docker installation wget  -O /etc/yum.repos.d/docker-ce.repo   https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo y ...

Posted by jerdo on Tue, 03 Dec 2019 02:07:06 -0800

Introduce and install MySQL database in detail

Basic concepts of database data The symbolic record that describes things is called Data Including numbers, words, graphics, images, sounds, archives, etc Store in a unified format in the form of "record" surface Organize different records together to form a "table" It is used to store specific data data base A databas ...

Posted by hno on Tue, 03 Dec 2019 01:22:28 -0800