Docker Network and Data Volume Settings [3]

I. Docker Network Settings By default, docker creates a bridge network card [docker 0]. docker has two mapping modes: random mapping and specified mapping. Tip: Random mapping is not commonly used in production scenarios, but the advantage of random mapping is that it is allocated by docker and ports do not conflict. Case 1: S ...

Posted by mammy on Fri, 17 May 2019 23:50:54 -0700

In the application of yii2, we use imagine library to generate shared graph.

This requirement is now particularly common, such as generating small program sharing graphs, generating circle of friends sharing graphs and so on, generally text + two-dimensional code + background template. Today we use imagine to accomplish this task and use it as an interview module for the website. The layout of my shared map is as follow ...

Posted by brewmiser on Fri, 17 May 2019 20:10:56 -0700

Install mysql-5.7.20 on centos7

Background environment [root@node1 log]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) mysql's official download address II. Installation steps 1. Add mysql group and mysql user to set up the owner and group of mysql installation directory file. #Users and user groups are automatically created here. [root@node1 op ...

Posted by kunalk on Fri, 17 May 2019 06:33:12 -0700

Learn to analyze Kernel Dump from a virtualization front-end Bug

Preface As you may know, there is a common tool for analyzing Kernel Dump called Crash. When I first started to learn how to analyze Kernel Dump, I spent a lot of time toggling about the use of this tool, but I always forgot its function.Later, one time when I participated in an internal sharing, I was very impressed by a big guy who said, &quo ...

Posted by NickG21 on Thu, 16 May 2019 02:04:55 -0700

Use of sed command

Sed is a stream editor. It is a very useful tool in text processing. It can perfectly cooperate with regular expressions and has extraordinary functions. When processing, the currently processed rows are stored in a temporary buffer called pattern space, and then the contents of the buffer are processed with sed command. Afte ...

Posted by ricmetal on Wed, 15 May 2019 09:26:12 -0700

Error 401 for saltstack to get token

Recently, when using saltstack to get token, there are always 401 certification failures. Baidu Google has searched a lot of data and failed to solve them. Well, this time, basically the mistakes have come out. This time, I blame myself for not being too careful. With more recent events, when I saw the error, I had some psychological explosi ...

Posted by bandit8 on Sat, 11 May 2019 06:52:53 -0700

Time service and chrony

Multi-host collaboration work is that the time synchronization of each host is very important. Time inconsistency will cause many important application failures, such as encryption protocol, log, cluster and so on. NTP protocol is used to synchronize the time of each computer in the network. Currently, NTP protocol is a prerequisite in the op ...

Posted by CWebguy on Sat, 11 May 2019 03:24:03 -0700

docker configures private warehouses

This tutorial uses the operating system CentOS 7. docker installation configuration If the docker is not installed on the machine, it can be installed quickly by the following means (for maximum consistency, the version specified here): yum -y install docker-1.12.6-28.git1398f24.el7.centos.x86_64 #Start docker systemctl start ...

Posted by rafadc on Wed, 08 May 2019 14:45:39 -0700

ansible MODULE FOR AUTOMATIC OPERATION AND MANAGEMENT

Ansible can use the command line to manage automatically. Command management tools are supported by a series of modules and parameters. The basic grammar is as follows: ansible  <host-pattern>  [ –m  module_name ]  [ –a  args] <host-pattern> : Which hosts are valid [ –m  module_name ]  :Specify the module to be used [-a args ]  :M ...

Posted by migmedia on Sun, 05 May 2019 12:32:38 -0700

Install and configure Nginx under Centos 7

This paper is based on entos 7 installation configuration Nginx operation practice record collation. Configuration of EPEL Sources sudo yum install -y epel-release sudo yum -y update II. Installation of Nginx sudo yum install -y nginx After successful installation, the default website directory is: / usr/share/nginx/html The default configurat ...

Posted by patch2112 on Thu, 25 Apr 2019 15:21:36 -0700