5. ansible management task plan, ansible installation package and management services, playbook using ansible

1. ansible Management Task Plan # ansible testhost -m cron -a "name='test cron' job='/bin/touch /tmp/1212.txt'  weekday=6" Name specifies the name of the task plan, job specifies what its command is, and then it specifies its time-sharing day, month, week, or *. [root@yw02 ~]# crontab -l #Ansible: test cron * * * * 6 /bin/touch /tmp/1212.txt T ...

Added by Gibb Boy on Thu, 05 Dec 2019 04:46:06 +0200

CentOS 7 upgrades the latest kernel

View kernel uname -r Set kernel source Mainly http://elrepo.org/tiki/tiki-index.php The ELRepo warehouse is a community-based Enterprise Linux warehouse that provides support for Red Hat Enterprise (RHEL) and other RHEL based Linux distributions (CentOS, Scientific, Fedora, etc.). ELRepo focuses on software packages related ...

Added by teamshultz on Tue, 03 Dec 2019 19:39:30 +0200

zabbix monitoring to get Apache status

The following operations are performed on the ZABBIX agent side: Initialize (execute script) sh init.sh httpd installation and startup (binary) yum install -y httpd* #Install httpd systemctl start httpd.service;systemctl enable httpd.service #Service startup and startup ss -ant |grep :80 #Check whether the 80 of httpd is up LISTEN 0 ...

Added by stricks1984 on Sun, 01 Dec 2019 22:26:13 +0200

Alibaba cloud CentOS 7.6 installation of mysql8

Create mysql users and user groups groupadd mysql useradd -g mysql mysql passwd mysql Uninstalling mariadb from the system #query rpm -qa|grep mariadb Return mariadb-libs-5.5.60-1.el7_.x86_ #uninstall rpm -e mariadb-libs-5.5.60-1.el7_5.x86_64 Return error: Failed dependencies: libmysqlclient.so.18()(64bit) is needed by (installed) post ...

Added by steve55 on Sun, 01 Dec 2019 03:37:24 +0200

Theory: DNS Domain Name Resolution Service - - theoretical explanation

Preface: BIND Domain Name Service Base The Role and Type of DNS System BIND Installation and Profile Building a Domain Name Server with BIND Build Cached Domain Name Server Build master and slave domain name servers Important steps: Find the main configuration file, find the startup script I: The role of the DNS system 1.1 Forward Reso ...

Added by cool75 on Mon, 25 Nov 2019 00:14:36 +0200

Configuring RabbitMQ 3.6.3 cluster and high availability on CentOS7

Overview of clusters RabbitMQ cluster is implemented through Erlang's distributed feature (magic cookie authentication node). Each RabbitMQ service is peer-to-peer node, that is, each node provides services to the client to connect, send and receive messages. These nodes replicate message queue structure through RabbitMQ HA queue (mi ...

Added by duckula on Wed, 20 Nov 2019 17:49:57 +0200

RHEL8 teaching environment virtual machine installed on VMware Workstation

When installing the Red Hat Enterprise Linux 8 teaching environment, students need to install the environment into a virtual machine to practice on their laptops. VMware Workstation is generally recommended to host the entire teaching environment. Get ready: 1) mobile hard disk 2) USB disk above 16G 3) RHEL8 teaching environment software S ...

Added by roots on Wed, 13 Nov 2019 21:43:21 +0200

Deploying ELK log analysis system based on Docker container

Deploy elk log analysis system to consume more computer hardware. If you use virtual machine for test deployment, it is recommended to allocate more hardware resources. Otherwise, when elk container is running, it will not work normally. I will allocate 5G of memory to the docker host, four CPU s. I. environmental preparation I use a docker ho ...

Added by Jack Sparrow on Sat, 02 Nov 2019 01:55:08 +0200

Apache Web page optimization: Web page compression and caching

Apache Web page optimization concept In an enterprise, only the default configuration parameters are used after deploying Apache, which will cause many problems in the website. In other words, the default configuration is for the previous lower configuration.Server configuration, the previous configuration is not suitable for today's Internet ...

Added by bobbfwed on Tue, 29 Oct 2019 10:13:44 +0200

centos7 install MySQL version 5.7 (full)

centos installation Version Description: centos7, mysql5.7, not centos7, some commands may not be compatible Install MySQL server # Download and install mysql yum. wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-community-release-el7-10.noarch.rpm # Install MySQL server yum -y install m ...

Added by DusterG20 on Sat, 19 Oct 2019 10:52:32 +0300