Build nginx+mysql+loganalyzer+rsyslog log server
We have planned two hosts in advance. They are:
server-1: 192.168.1.135
server-2: 192.168.1.136
server-1 is used as a client to collect logs, import them into MySQL database of server-2, and display the front-end web through Log Analyzer.
First is the configuration of server-2
Install LNMP
yum install nginx php -php-fpm php-mysql mysql-server ...
Posted by Jassal on Mon, 05 Aug 2019 12:09:40 +0200
Android apk online upgrade
APK Online Upgrade
APK online upgrade is an essential function of almost all programs.
Online upgrades can solve existing problems and provide richer new functions.
The basic process is:
New version information detected
Pop-up upgrade prompt window
Click No to not upgrade, it's over!
Click Yes to download the upgrade program in the ba ...
Posted by dannynosleeves on Mon, 05 Aug 2019 07:47:45 +0200
AcWing Group Queue
AcWing Group Queue
Description
There are n groups in a queue, with several people in each group.
When a person comes to the queue, if there are already members of his own group in the queue, he will jump directly behind the members of his own group, otherwise he will stand at the end of the queue.
Please write a program to simulate this group ...
Posted by JukEboX on Sun, 04 Aug 2019 19:39:30 +0200
python-exception handling
abnormal
Grammatical errors: space indentation grammatical rules
Logical Error Writing Code Implementation
Conditional Judgment
exception handling
Common anomalies
NameError
IndexError
TypeError
ValueError
Common anomalies
AttributeError attempts to access a tree that an object does not have, such as foo.x, but foo has no attribute x
...
Posted by mrdance on Sun, 04 Aug 2019 16:53:46 +0200
ASP.Net Core Distributed Communication--Serialization
1. Serialization of Net Core
1.1 json.Net
Common toolkits, such as Newtonsoft.Json, are components of serialization and deserialization based on json format
json.net has the following advantages:
Intrusivity: Serialization can be done without adding attribute s
Flexibility: Flexible configurations, such as allowing serialized members to cu ...
Posted by railanc4309 on Sun, 04 Aug 2019 16:42:42 +0200
Day3: Salted Fish Losing Dreams
Nothing in the world can stop me from moving forward unless I debug a water problem for half an hour...
0/40(60?)/0
3403. Standard IO
Time Limits: 1000 ms Memory Limits: 524288 KB Detailed Limits
Goto ProblemSet
Description
Xiao X has a great headache when he sees piles of homework. I hope you can help him wi ...
Posted by kester on Sun, 04 Aug 2019 13:43:08 +0200
Policy mode, refactoring if-else
Recently completed the development of our company's public number. WeChat's message routing was judged by if-else at the beginning. The more if-else messages written in the following month, the more confused.Check the solution on the web, and if there are a lot of dry goods, the most classic and concise way to feel is to use the strategy mode t ...
Posted by behzad on Sun, 04 Aug 2019 05:40:11 +0200
Super Detailed Talk about Logu P3369 [Template] General Balanced Tree
V1 Strict Disclaimer
This part of the content is abstracted from Baidu Encyclopedia and exempted from liability after declaration.
V2 Pull and spit
Want to experience what despair is?
Try this question and make sure you suspect life.QwQ
(Big man, please skip)
Here is the topic
(Super Details)
1 Conceptual View Details click
1.1 Bala ...
Posted by kostasls on Sun, 04 Aug 2019 05:01:49 +0200
@loj - 2339@ "WC2018" channel
Catalog
@desription@
@solution@
@accepted code@
@details@
@desription@
In 11328, scientists in Country C developed a high-speed transmission channel that can take residents from one end of the channel to the other in a very short time. These channels are bidirectional.
The disadvantage is t ...
Posted by JTapp on Sun, 04 Aug 2019 02:40:45 +0200
nginx lua integrated kafka
NGINX lua integrated kafka
Step 1: Enter the opresty directory
[root@node03 openresty]# cd /export/servers/openresty/
[root@node03 openresty]# ll
total 356
drwxr-xr-x 2 root root 4096 Jul 26 11:33 bin
drwxrwxr-x 44 1000 1000 4096 Jul 26 11:31 build
drwxrwxr-x 43 1000 1000 4096 Nov 13 2017 bundle
-rwxrwxr-x 1 1000 1000 45908 Nov 13 20 ...
Posted by damdempsel on Sat, 03 Aug 2019 10:05:15 +0200