Linux installs Mycat1.6.7.6 and realizes simple configuration of Mysql database read-write separation
1. Introduction to Mycat
A completely open source large database cluster for enterprise application developmentSupport transaction, ACID and enhanced database that can replace MySQLAn enterprise database that can be regarded as a MySQL Cluster is used to replace the expensive Oracle clusterA new SQL Server integrating memory cache technology, ...
Added by Matty999555 on Tue, 26 Oct 2021 03:25:01 +0300
Alibaba online bug troubleshooting command
Linux command class
tail
The most commonly used tail -f
tail -300f shopbase.log #Count down 300 lines and enter the real-time listening file writing mode
grep
grep forest f.txt #File lookup
grep forest f.txt cpf.txt #Multi file lookup
grep 'log' /home/admin -r -n #Find all files that match the keyword in the directory
cat f.txt | grep ...
Added by unsider on Mon, 25 Oct 2021 08:28:07 +0300
linux system learning 04
First, complete sub task 3: configure and install nginx. It's smooth and successful at one time
Step 1: installation environment
Note: before installing these environments, you can check whether you have installed them. If you have, you don't need to install them again
rpm -qa | grep gcc
We can find that we have it now
If not:
1, gcc in ...
Added by zaki on Mon, 25 Oct 2021 08:03:18 +0300
Linux --- file operation
File reading & writing in C language
#include <stdio.h>
int main()
{
FILE* fp = fopen("log.txt","r");
if(fp == NULL)
{
perror("fopen");
return 1;
}
int ct = 5;
char buf[64];
while(ct){
fgets(buf,sizeof(buf),fp);
printf(buf);
ct--;
}
/*
int ct = 5;
while(ct)
{
fputs("hello worl ...
Added by Akito on Sun, 24 Oct 2021 03:18:02 +0300
Eight practical uses of wget command
Hello, I'm Liang Xu.
wget is a free utility that can download files from the network. Its working principle is to obtain data from the Internet and save it to a local file or display it on your terminal.
This is actually done by the browsers we use, such as Firefox or Chrome. In fact, we call the wget program internally for data download.
Th ...
Added by Stuie_b on Fri, 22 Oct 2021 07:02:35 +0300
Linux performance optimization network
Performance test of each protocol layer
Forwarding performance
hping3: as a SYN attack tool, but it is more used as a performance tool to test the processing ability of network packets. Pktgen: high performance network testing tool pktgen provided with Linux kernel. Pktgen supports a wealth of custom options to facilitate the constructi ...
Added by zack45668 on Thu, 21 Oct 2021 00:04:20 +0300
Linux ubuntu manual installation of gitlab, docker installation of gitlab tutorial and configuration
Construction environment: Gitlab server 192.168.152.131 gitlab installation address: https://about.gitlab.com/install/
1: Native manual installation gitlab
1. Install and configure the necessary dependencies
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates tzdata perl
2. Add GitLab package and install it
cu ...
Added by tjodolv on Wed, 20 Oct 2021 06:17:06 +0300
On the principle and practice of VMware network connection mode
VMware DHCP Service and VMware NAT Sevice
After vmware is installed, these two network services will be installed on the host by default. DHCP is used for IP allocation and NAT service is used for address translation. It is only required in NAT mode.
Adapter VMnet8 and Adapter VMnet1 on the host &nbs ...
Added by trazan on Tue, 19 Oct 2021 23:15:43 +0300
Boot analysis of linux kernel version 2.6.16
See this blog post for details of the computer startup process Computer boot process Briefly, after pressing the power key, cs:ip is set to 0xffff0, which is fixed. The BIOS program is recorded on it. The BIOS performs basic hardware self-test, establishes an interrupt vector table, initializes BIOS interrupts, etc. next, the first sector (512B ...
Added by the_lynx123 on Tue, 19 Oct 2021 04:21:26 +0300
riscV bare metal programming
1. General 2. Composition of minimum works 3. Link script 4. Executable program source code analysis 5. Compilation and operation
5.1 compilation 5.2 operation 5.3 commissioning 6. Summary
1. General
Any chip needs a piece of assembly code before startup, which can reflect some characteristics of architecture design. It is often ...
Added by tkm on Tue, 19 Oct 2021 00:08:37 +0300