Linux system architecture: dynamic and static separation between Nginx and Tomcat
1, Overview of dynamic and static separation
Static and dynamic separation is to separate the static resources (HTML, JavaScript, CSS,img and other files) of the website from the background application, improve the speed of users' access to static code, and reduce the access to the background applic ...
Added by truCido on Sun, 02 Feb 2020 07:55:17 +0200
Building high availability rabbitmq cluster
1, Set up each node of the cluster
Prepare five nodes, which are:
192.168.154.150
192.168.154.151
192.168.154.152
192.168.154.153
192.168.154.155
For the convenience of operation, only the first three nodes are prepared here
Construction of rabbitmq cluster image mode
1) Stop each node servi ...
Added by fncuis on Sat, 01 Feb 2020 08:54:14 +0200
cobra of Go daily
brief introduction
cobra Is a command itinerary library, can be used to write command-line programs. It also provides a scaffold,
Used to generate cobra based application framework. Many well-known open source projects use cobra library to build command line, such as Kubernetes,Hugo,etcd Wait, wait, wait.
This paper introduces the basic use of ...
Added by Bullet on Sat, 18 Jan 2020 11:57:23 +0200
LVS load balancing cluster (Theory + experiment)
Article directory
Preface:
1, Overview of enterprise cluster application
1.1 basic overview of cluster
1.2 enterprise cluster classification
1.3 analysis of load balancing cluster working mode
1.3.1 NAT mode
1.3.2 TUN mode
IP Tunnel
1.3.3 DR mode
1.4 load balancing cluster architecture
1.53 about ...
Added by faraway on Wed, 15 Jan 2020 12:23:01 +0200
fastDFS Distributed File System Setup
Overview of fastDFS
_FastDFS is an open source, lightweight, distributed file system, which manages files, including file storage, file synchronization, file access (file upload, file download), etc. It solves the problems of mass storage and load balancing.It is especially suitable for online services with files as carriers, such as photo al ...
Added by binarynomad on Tue, 07 Jan 2020 20:38:33 +0200
linux startup management
1, centos6 start management
1.1 significance of operation level
1.2 view operation level
[root@localhost log]# runlevel
3 5 //It means 5 at present, 3 before. If it's N, it means direct power on to enter 5
1.3. Set the default startup operation level
[root@localhost log]# vim /etc/inittab
2, S ...
Added by Katanius on Mon, 06 Jan 2020 19:34:06 +0200
Linux - high availability of lvs with keepalived
Single master model IPVS example
Configure keepalive
Example of highly available ipvs cluster: modifying the keepalived configuration file
Modify the keepalived configuration file of the host: 192.168.234.27
1 [root@234c27 ~]# vim /etc/keepalived/keepalived.conf
2 ! Configuration File for keepalived
3
4 global_defs {
5 notification_ ...
Added by Patty on Sun, 05 Jan 2020 12:53:02 +0200
logstash installation and simple test
background
The business purpose is to analyze the daily logs generated by nginx and apache, monitor the url, ip, rest interface and other information, and send the data to the elastic search service.
Contrast flume
No repeated consumption, no data loss
At present, flume supports hdfs better (personal understanding)
Off line installation
Java ...
Added by TheMD on Sun, 05 Jan 2020 06:29:24 +0200
LNMP schema (Nginx access log, Nginx log cutting, static file does not record log and expiration time)
Nginx access log
1. Open the configuration file and search for log? Format
vim /usr/local/nginx/conf/nginx.conf
2. Meaning of common variables in access log
$remote_addr: client IP (public IP)
$HTTP "X" forwarded "for: IP of proxy server
$time_local: server local time
$host: access host name (domain name)
$request_uri: url add ...
Added by pietbez on Sat, 04 Jan 2020 21:41:18 +0200
Docker warehouse certification
Docker officially encapsulates the warehouse as an image. You can deploy the warehouse directly by starting the container
Experimental environment
Physical machine 172.25.41.250
I. warehouse authentication mechanism
1. certificate
[root@foundation41 docker]# docker run -d --restart=always --name registry -v ` ...
Added by norpel on Thu, 02 Jan 2020 13:38:57 +0200