Log rotate, a linux Log cutting tool
Log rotate is installed by default on Linux system, and the default configuration file is:
/etc/logrotate.conf
/etc/logrotate.d/
logrotate.conf: primary configuration file
logrotate.d: to configure the relevant subsystem to isolate each application configuration (Nginx, PHP, Tomcat...)
It is used to solve the problem that individual log files a ...
Posted by lordtrini on Fri, 18 Oct 2019 10:11:14 -0700
Deploying static websites (nginx) using docker
Article directory
Create an interactive container that maps port 80
Install nginx
Create static pages
Modify nginx configuration file
Run nginx
Verify Web Site Access
Create an interactive container that maps port 80
[root@localhost ~]# docker run -it -p 80 --name web centos /bin/bash
Instal ...
Posted by richardw on Sun, 13 Oct 2019 14:37:29 -0700
Regular Expressions for Shell Programming
awk tools
In Linux/UNIX system, awk is a powerful editing tool. It reads input text line by line, searches according to the specified matching mode, formats and outputs qualified content or filters it. It can realize quite complex text operation without interaction. It is widely used in Shell scripts to complete various automatic configuration ...
Posted by lostnucleus on Sat, 12 Oct 2019 16:13:07 -0700
[Kubernetes Series] Part 5 Introduction to Ingress controller - traefik components
1. overview
In order for Ingress resources to work, there must be at least one running ingress controller component in the Kubernetes cluster. That is to say, if there is no ingress controller component in the kubernetes cluster, only the ingress resource is defined, in fact, it will not realize the functions of http, https protocol request for ...
Posted by TexasMd91 on Thu, 10 Oct 2019 23:37:51 -0700
Shell Programming-Expect Free of Interaction
Expect overview
Expect is a tool based on tcl. Expect is a tool for automatic control and testing. It mainly solves the problem of non-interaction in shell script. It's helpful for large-scale Linux operations and maintenanceIn the development of Linux operations and peacekeeping, we often need remote login server to operate. The login proces ...
Posted by Redneckheaven on Thu, 10 Oct 2019 06:18:15 -0700
Xtrabackup backup script
Install MySQL
mysql-5.7 (yum mode)
curl -sSL https://dwz.cn/gfcnHqGS -o install-mysql.sh
chmod +x install-mysql.sh
./install-mysql.sh --get-version # View software versions in the repository
# Example
./install-mysql.sh --active install --data-dir /home/hadoop/mysql --version 5.7.23 --root-pass 123abc@DEF
--help # View Help Inform ...
Posted by jtbaker on Sun, 06 Oct 2019 01:57:33 -0700
Network Management
Network protocol
OSI Seven-Layer Model and TCP/IP Four-Layer Model
TCP Protocol and UDP Protocol
TCP protocol: Transport control protocol. It is a connection-oriented protocol, which must establish a reliable connection with the other party before sending data.
UDP protocol: User datagram protoco ...
Posted by kevin99 on Fri, 04 Oct 2019 12:05:10 -0700
ansible - Configuration of Host List
1. Configuration of ansible host list
The following are the source files after the installation of ansible
[root@test-1 ~]# cat /etc/ansible/hosts
# This is the default ansible 'hosts' file.
#
# It should live in /etc/ansible/hosts
#
# - Comments begin with the '#' character
# - Blank lines are ignored
# - Gro ...
Posted by brendan2b on Thu, 03 Oct 2019 05:22:08 -0700
Formatting Time Output in Golang
Usually we need to format the output of time in the process of program processing, so that users or other programs can recognize time more friendly. This paper records how to format time in the process of using golang language.
Usually we can use linux shell to format the time conveniently:
sh-4.1$ date
2018 Tuesday, 18 September 2002:49:06 CST ...
Posted by tthmaz on Thu, 03 Oct 2019 02:40:46 -0700
Creating docker image warehouse with Harbor
1. Why use Harbor
Harbor is open source, free software
Harbor is for enterprise users
Harbor has a friendly WEB management interface
II. Harbor Official Resources
https://github.com/goharbor/harbor/blob/master/docs/installation_guide.md
https://github.com/goharbor/harbor/releases
Prerequisite 1: Installation of docker
Delete the old versio ...
Posted by bennyboywonder on Wed, 02 Oct 2019 15:53:20 -0700