Summary of problems encountered in docker environment required for k8s deployment

Alibaba cloud's one click deployment script is used for deployment: curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun Create the required directory: mkdir -p /etc/docker /data/docker Then modify the configuration file of docker: /etc/docker/daemon.json {   "graph": "/data/docker",   "storage-driver": "overlay2",   "insecure-re ...

Added by zenag on Mon, 23 Mar 2020 11:23:01 +0200

Difference between TCP and UDP

TCP In order to facilitate the development of network applications, Berkeley University in the United States implements a kind of communication protocol Socket on Unix, which enables programmers to access TCP/IP conveniently; Use Socket of TCP/IP to communicate: The server program binds a socket ...

Added by boogybren on Fri, 06 Mar 2020 07:30:09 +0200

linux file system related commands (df/du/fsck/dumpe2fs)

1, File system view command df format df [options] [mount point] option Name Effect -a Display all file system information, including special file systems, such as / proc,/sysfs -h Display capacity in customary units, such as KB,MB or GB -T Show file system types -m Display capacity in MB -k Display capacity in kilobytes. The def ...

Added by seventheyejosh on Fri, 28 Feb 2020 09:52:15 +0200

Knowledge summary - principle and use of 05 token

1. token has two main functions: (1) Prevent form from being submitted repeatedly (set the time limit) Principle: generate a unique random identification number on the server side. The technical term is Token. At the same time, save the Token in the Session domain of the current user. Then the Token is ...

Added by mhouldridge on Sun, 23 Feb 2020 08:16:27 +0200

[thinkphp5 operation redis series tutorial] pconnect (or popen) connection

1.pconnect /** * Connects to a Redis instance or reuse a connection already established with pconnect/popen. * * The connection will not be closed on close or end of request until the php process ends. * So be patient on to many open FD's (specially on redis server side) when using persistent connection ...

Added by smith.james0 on Thu, 02 Jan 2020 11:10:13 +0200

Boost.Asio Source Reading: Organization Structure

(This article is based on Boost 1.69)Boost.Asio code style.Asio divides the declaration and implementation of some of the more complex classes into two header files for readability, and include s the header file of the implementation at the end of the header file of the declaration.The impl folder contains header files for these implementations ...

Added by KDesigns on Tue, 10 Dec 2019 16:44:16 +0200

Usage Summary of Python pyppeter module

I. simple code example import asyncio from pyppeteer import launch async def main(): browser = await launch() page = await browser.newPage() #Open a new page await page.goto('https://www.baidu.com / ', visit Baidu await page.screenshot({'path': 'baidu.png'}) #Screenshot and store await browser.close() asyncio.get_event ...

Added by danielson2k on Mon, 02 Dec 2019 15:30:10 +0200

The integration of hongsoft SDK in nodejs

Address of hongsoft official website http://www.arcsoft.com.cn Register the account on the official website, apply for the activation code of face recognition, select the SDK version and the operating system (windows/linux/android/ios), we select windows for the test, choose the application type as 1:N, and the functional module ...

Added by FiveFlat on Fri, 29 Nov 2019 20:08:57 +0200

PostgreSQL-11.3-master-slave stream replication + manual master-slave switch

1 Summary Use PostgreSQL 11.3 to create two nodes: node1 and node2; configure master-slave stream replication, and then make a manual switch (failover). To simplify the configuration process, two nodes are on the same physical machine. First, the master-slave synchronous flow replication is established. At first, node1 is the Primary node and ...

Added by RedMaster on Tue, 19 Nov 2019 17:58:44 +0200

Packaging and unpacking of [android]system.img file

Two formats of 1: system.img system2_0.img: Linux rev 1.0 ext4 filesystem data, UUID=57f8f4bc-abf4-655f-bf67-946fc0f9f25b (extents) (large files) system1_0.img: Android sparse image, version: 1.0, Total of 393216 4096-byte output blocks in 1765 input chunks. //The above two formats are respectively: ext4 filesystem ...

Added by artfuldrone on Thu, 31 Oct 2019 22:08:04 +0200