OkHttp3 source code (I) ---- OkHttpClient
The internal implementation process of OkHttp3 was not considered when it was used before. Today, I will sort out and record it.
Next, I will add the common methods, internal classes and fields in the OkHttpClient class with my own understanding of comments, and understand the main purpose of OkHttpClient by looking at the com ...
Added by nnpdn on Sat, 04 Apr 2020 18:24:50 +0300
linux builds DNS server 3
1. For the installation of bind 9, it is assumed that bind 9 has been installed through apt get
2. Enter the directory / etc/bind
3. Create a zone record file (similar to db.xxx): Here I create db.testlyhh.com
4. Edit the named.conf.default-zones file and add the following:
zone "testlyhh.com" {
type master ...
Added by jack_wetson on Tue, 31 Mar 2020 16:08:01 +0300
Service discovery plug-in in k8s CoreDNS
The default service discovery in k8s is to automatically associate the service name to the clusterIP through dns
Deploy the resource configuration list HTTP service in k8s:
On the hdss7-200 host, configure a nginx virtual host to provide a unified resource configuration list access portal for the k8s intranet:
[root@hdss7-200 conf.d]# cat k8s- ...
Added by WinnieThePujols on Sat, 28 Mar 2020 18:10:12 +0200
go micro practice 01: fast build service
background
Go micro provides us with a very convenient way to quickly build microservices, and we do not need to know about micro in advance. Here is a simple example to quickly implement a service.
Create a Proto file
Because we want to do microservices, there must be a server and a client. The format of content transmission between these two ...
Added by BMorganVA on Fri, 27 Mar 2020 12:21:40 +0200
Squid installation example
Github-blog CSDN-blog
windows version
Proxy Download
http://squid.diladele.com/
Installation configuration
1. Install without stopping next;
2. Remove the default from all the files at the end of default under squid/etc / and change them to conf files
3. Configure the squid.conf file according to the lo ...
Added by Cantaloupe on Thu, 26 Mar 2020 19:16:57 +0200
[Kali penetration all-round practice] use Nmap for port detection to find vulnerable sites
Article directory
1 Summary
2 Nmap action
3 common Nmap scanning instructions
4-port scan status
The difference between TCP / IP and Http
6 use Nmap to detect the target open port
1 Summary
One port is a very important thing in network application, equivalent to "door".
What is port
Po ...
Added by WD.Gh0st on Sun, 15 Mar 2020 13:17:53 +0200
BoneCP Connection Pool Reconnection Mechanism Analysis
1. Background
BoneCP used by friend company Mysql connection pool, the application accesses Mysql as domain name, which is configured as follows:
jdbc:mysql://order.mysql.xx.cn:3306/order?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
All middleware access is through th ...
Added by navtheace on Sun, 15 Mar 2020 04:17:09 +0200
Use guide of tcpdump
Original link: Tcpdump sample tutorial
The main content of this paper is translated from <Tcpdump Examples>.
Tcpdump is a powerful network packet capturing tool. It uses libpcap library to grab network packets, which is found in almost all Linux/Unix. Familiar with the use of tcpdump can help you to analyze and debug network data. Th ...
Added by nigel_belanger on Mon, 09 Mar 2020 09:11:48 +0200
Consul: 3: getting started with agent
Consul is very simple to use. This article continues to introduce the usage of Consul Agent in an example way.
Preparation beforehand
liumiaocn:~ liumiao$ consul --version
Consul v1.7.1
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to comp ...
Added by harnacks on Sat, 29 Feb 2020 07:58:19 +0200
Interpretation of new features | MySQL 8.0.19 supports DNS SRV
Reproduced from the public address: fun MySQL
Author: Hong bin
MySQL Router is the access portal of InnoDB Cluster architecture. In the architecture deployment, the official advice is to bind the router to the application side to avoid the router single point problem.
Before that, there was a customer consultation about whether the router co ...
Added by mjgdunne on Wed, 12 Feb 2020 11:53:10 +0200