7, Install Nginx and playbook management profiles with Playbook

1, Installing Nginx with playbook Idea: first compile and install nginx on a machine, package it, and then issue it with ansible #cd / etc/ansible enter the ansible configuration file directory #mkdir nginx install creates a nginx install directory for easy management # cd nginx_install # mkdir -p roles/{common,install}/{handlers,files,meta,ta ...

Posted on Fri, 10 Jan 2020 02:41:02 -0800 by parkej60

CentOS7.5 source shell script automatically installs more than MySQL 5.7.28 instances

In the previous article in this article, https://blog.51cto.com/8355320/2463218I used the manual source code to install MySQL 5.7.28, the installation process is still time consuming, I wrote a shell automatic installation script, please refer to the script I have no problems testing, script I have two times to modify the instance name and var ...

Posted on Thu, 09 Jan 2020 09:28:18 -0800 by west4me

Docker container - Compose orchestration_consul cluster_template template

docker compose container arrangement (1) The predecessor Fig of docker compose, which is a tool for defining and running multiple docker containers (2) Using docker compose eliminates the need to use shell scripts to launch containers (3) docker compose is well suited for scenarios where multiple containers are used together for development ...

Posted on Thu, 09 Jan 2020 09:23:27 -0800 by meandrew

Python Scrapy's QQ Music Crawler Music Download, Crawl Song Information, Lyrics, Great Comments,

QQ Music Crawler (with scrapy)/QQ Music Spider Update of magnetic search website 2020/01/07 https://www.cnblogs.com/cilisousuo/p/12099547.html UPDATE 2019.12.23 QQ music files have been downloaded and this part of the code is not publicly available for copyright reasons.It is the responsibility of everyone to use this project as a learning exc ...

Posted on Wed, 08 Jan 2020 21:09:23 -0800 by asgerhallas

How do I determine CPU and memory consumption from within a process?

I was once tasked with determining the following performance parameters from within a running application: Total Available Virtual Memory Currently used virtual memory Virtual memory currently used by my process Total available RAM RAM currently in use RAM currently used by my process Percentage of CPU curre ...

Posted on Wed, 08 Jan 2020 19:20:02 -0800 by dapuxter

How to grasp the network message of container directly in the system

After troubleshooting many times, I haven't figured out how to catch the network messages in the pod. Today, I encountered a failure of liveness health check. Liveness is confirmed by kubelet accessing the pod (get request occurs), so the corresponding access log can be seen in the pod, so I can try to catch the packets for troubleshooting, but ...

Posted on Wed, 08 Jan 2020 01:04:56 -0800 by CKPD

RMAP for Linux Memory Management

background Read the fucking source code!--By Luxun A picture is worth a thousand words. --By Golgi Explain: Kernel version: 4.14 ARM64 Processor, Contex-A53, Dual Core Use Tools: Source Insight 3.5, Visio 1. Overview RMAP reverse mapping is a method for physical addresses to reverse-map virtual addresses. mapping Page tables are used for ...

Posted on Tue, 07 Jan 2020 16:07:33 -0800 by ericburnard

docker port mapping

docker port mapping 1.docker run -d -p 80:80 nginx:latestdocker port mapping 1.docker run -d -p 80:80 nginx:latest 2.iptables viewing rules [root@docker03 ~]# iptables -t nat -L -n Chain PREROUTING (policy ACCEPT) target prot opt source destination DOCKER all -- 0.0.0.0/0 0.0.0.0/0 ADDRTY ...

Posted on Tue, 07 Jan 2020 09:42:16 -0800 by ehask

Failure of systemctl state probe in Kubernetes pod

In Heketi's glusterd container service, the system CTL probe is used to detect whether the glusterfs service is available. It is found that there is always a failure problem. It is found that the output information of systemctl status glusterd.service runtime on Ubuntu 18.04 is not what K8s livenessProbe wants, causing the detector to timeout ...

Posted on Tue, 07 Jan 2020 07:48:14 -0800 by everknown

linux network interface, ip address, routing settings

This paper is based on centos To configure DNS entries: Configuration file / etc/resolv.conf Modify host name: Command: hostname NAME. Failure after restart Configuration file / etc/sysconfig/network CentOS7 special command: hostnamectl Configure IP address mode: 1. Static designation: Order: ifcfg family: ifconfig: configure IP, NETMASK ...

Posted on Mon, 06 Jan 2020 19:12:26 -0800 by coldkill