Open the door to efficient text editing_ Linux Sed simulates common file commands

A case study of grep cat wc tail command implemented by Linux sed Statement and introduction Sed: Stream Editor text Stream Editor, sed is a "non interactive" character stream oriented editor. This paper introduces how to use sed to achieve the effect of other linux file commands, or how to usUTF-8...

Posted by Ristiisa on Sat, 29 May 2021 05:11:00 +0930

Docker - Docker Common Command + Deploy some basic services (Nginx, Tomcat, elasticsearch)

Docker Basic Command Help Command docker version #Display docker version information docker info #Displays docker system information, including the number of mirrors and containers docker command --help #Help Command Address of official help document Mirror Command docker images view all mirroUTF-8...

Posted by Flying Sagittarius on Tue, 22 Jun 2021 02:24:55 +0930

Docker -- docker Network + deploying Redis high availability cluster

Docker network mode Docker uses Linux bridge to create a docker container bridge (docker 0) on the host computer. When docker starts a container, it will assign an IP address to the container according to the network segment of the docker bridge, which is called container IP. Meanwhile, dockerUTF-8...

Posted by bickyz on Sun, 27 Jun 2021 04:14:24 +0930

javaSE foundation -- comprehensive analysis of notes

English words 1, Container definition It can be simply understood as a box or box containing things. It is a structure used to store elements, including variables, arrays, objects and containers. For details, see below 1.1 container inheritance system The Collection interface is the root levelUTF-8...

Posted by lottos on Mon, 12 Jul 2021 03:41:02 +0930

k8s -- pod scheduling viscosity of Kubernetes scheduling

pod scheduling stickiness of kubernetes scheduling 1: Three scheduling stickiness Nodeselector (directed scheduling) Affinity node Podaffinity Generally, the k8s default scheduling method is used, but in some cases, we need to run the pod on the node with characteristic tags. At this time, the UTF-8...

Posted by axtg86 on Fri, 30 Jul 2021 05:55:57 +0930

docker container network configuration and common operations

The creation of namespace in Linux kernel ip netns (network namespace) command You can complete various operations on the Network Namespace with the help of the ip netns command. The ip netns command comes from the iproute installation package. Generally, the system will install it by default. UTF-8...

Posted by mattnoble on Wed, 08 Dec 2021 01:01:54 +1030

docker storage volume management

COW mechanism Docker image is composed of multiple read-only layers. When the container is started, docker will load the read-only image layer and add a read-write layer at the top of the image stack. If the running container modifies an existing file, the file will be copied from the read-onlyUTF-8...

Posted by shamuraq on Wed, 08 Dec 2021 10:39:53 +1030

Kubernetes v1.23.0 was officially released, with a list of new features

"K8S ecology weekly" mainly contains some recommended weekly information related to K8S ecology I have been exposed to. Welcome to the Zhihu column "k8s ecology". Kubernetes v1.23 will be released soon. This is the third version released in 2021 and the last officially released version this yeaUTF-8...

Posted by califdon on Wed, 08 Dec 2021 13:53:46 +1030

C++ map container learning notes

map initialization Create an empty map container with key=string and value=int. #include int main(int argc, char * argv[]) { std::map map_values; return 0; } Initialize the map container using the initialization list. #include int main(int argc, char * argv[]) { sUTF-8...

Posted by Chafikb on Thu, 09 Dec 2021 14:28:11 +1030

Docker quick start

1, Cloud primordial In the view of users, the resources in the cloud can be infinitely expanded, and can be obtained at any time, used on demand, expanded at any time, and paid according to use. This feature is often referred to as using IT infrastructure like water and electricity In 2018, CNUTF-8...

Posted by CoffeeOD on Fri, 10 Dec 2021 06:27:12 +1030