docker installation and use under CentOS 7

docker start stop sudo systemctl start docker.service sudo systemctl stop docker.service sudo systemctl restart docker.service sudo systemctl status docker.service sudo systemctl enable docker sudo docker ps -a ## <-- List existing images ## sudo docker stop 17dd4ab4cda2 ##<-- 17dd4ab4cda2 by container id ## sudo docker rm 17dd4ab4cda ...

Added by Phirus on Thu, 21 May 2020 17:37:51 +0300

The AI of Serverless writes poetry. Who can withstand the romance of programmers!

Ancient poetry is the treasure of Chinese culture. I remember that when I was an Exchange Student in South Korea, I saw that they learned our ancient poetry, including Chinese and translation versions. I was proud of myself and even remembered some familiar poems at some time. In this paper, we will generate some ancient poetry for us through i ...

Added by Bootsman123 on Wed, 20 May 2020 20:03:35 +0300

Stop using a single framework, XUtils - you deserve it!

Details of XUtils 1, What are XUtils? brief introduction Configuration before use 2, XUtils loading pictures ImageOption Load network picture Load Android resource pictures Load sd card picture 3, XUtils request network RequestParams get request post request 4, Use summary ...

Added by u01jmg3 on Wed, 20 May 2020 13:51:48 +0300

Fully parsing different python threads

thread The scheduling unit of CPU is simply the end executor in the program, which is equivalent to the position of younger brother. Some people say that the thread in python is a chicken rib because of GIL, but it is not a chicken rib. After all, it works well when performing io operations, but it is unsatisfactory when performing calculation ...

Added by greenhorn666 on Wed, 20 May 2020 10:16:40 +0300

About encapsulation of applet network requests (detailed version)

Guide readers from the most basic applet network request encapsulation to the optimal solution of network request encapsulation When using the native applet network api, there are two disadvantages: Multiple pages often send multiple network requests on behalf of the server, which puts too much pressure on the server - > depressurize ...

Added by harrylt on Tue, 19 May 2020 15:27:11 +0300

PHP7 production environment queue Beanstalkd correct use posture

Application scenario Why use it? What's the advantage? This should be put at the beginning to say that only when you know what it is and what it is suitable for, can you better integrate it with your own projects. Where to use it and where to learn it? Learning it doesn't mean learning it doesn't mean we won't. We should usually consider more s ...

Added by arfa on Tue, 19 May 2020 08:46:14 +0300

gRPC load balancing (client load balancing)

preface Part I This paper introduces how to use etcd to realize service discovery. On the premise of service discovery based on etcd, this paper introduces how to realize load balancing of gRPC client. gRPC load balancing The official gRPC document provides a load balancing scheme for gRPC Load Balancing in gRPC , this scheme is designed fo ...

Added by zszucs on Tue, 19 May 2020 04:47:29 +0300

elasticsearch 7.7 add user name and password authentication

1. First of all, I do not need to install x-pack separately when the ES version of single instance and single node is 7.7 { "name" : "node-1", "cluster_name" : "myes", "cluster_uuid" : "OGiYluA_Sxynl2bXl1TcbQ", "version" : { "number" : "7.7.0", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "81 ...

Added by bimo on Mon, 18 May 2020 17:24:39 +0300

LXC of Container Technology

What is a container?In life, our common containers are all kinds of bottles, jars and jars, all kinds of things that can hold other materials are called containers. The characteristics of containers are that they have a good isolation function, which makes different materials isolated from each other. In addition, containers are convenient to t ...

Added by bbbaldie on Sat, 16 May 2020 19:21:00 +0300

fork function and vfork function

fork function In many applications, creating multiple processes is an effective method for task decomposition. For example, a network server process can create a new subprocess to process each request while listening for client requests. At the same time, the server process will continue to listen for more client connection requests. Decomposin ...

Added by vinny69 on Wed, 13 May 2020 07:56:54 +0300