
Zabbix 3.4 Source code compilation installation
1. Installation environment (Hyper-V virtual machine): $hostnamectlStatichostname:localhost.localdomainIconname:computer-vmChassis:vmMachineID:renwoles1d8743989a40cb81db696400BootID:renwoles272f4aa59935dcdd0d456501Virtualization:microsoftOperatingSystem:CentOS Linux7(Core)CPEOSName:cpe:
Sep 04, 2024 am 07:32 AM
Introduction to ansible's ansible.cfg configuration
After Ansible is installed by default, there is a configuration file /etc/ansible/ansible.cfg. This configuration file defines the default configuration part of the ansible host, such as whether a password is required by default, whether sudo authentication is enabled, the location of the action_plugins plug-in, and hosts The location of the host group, whether to enable the log function, the default port, the location of the key file, etc. The details are as follows: [defaults]#somebasicdefaultvalues...hostfile=/etc/ansible/hosts\\Specify the location of the default hosts configuration#library_path=
Sep 02, 2024 pm 04:40 PM
Understand ansible architecture and working principles
Ansible is a model-driven configuration manager that supports multi-node publishing and remote task execution. By default, SSH is used for remote connections. There is no need to install additional software on managed nodes and it can be extended using a variety of programming languages. 1. Ansible Basic Architecture The picture above shows the basic structure of ansible. From the picture above, you can understand that it consists of the following parts: Core: ansible core modules (CoreModules): These are the modules that come with ansible. Extension modules (CustomModules): If the core If the module is not enough to complete a certain function, you can add extension module plug-ins (Plugins): Supplementary playbooks (Playbooks) to complete the module function: a
Sep 02, 2024 pm 03:59 PM
Humanized HTTP command line tool——HTTPie
This article is mainly to let readers understand Httpie, the HTTP command line client, and also learn about the interface. What is Httpie? Httpie (aych-tee-tee-pie) is an HTTP command line client. The goal is to make the interaction between the CLI and web services as user-friendly as possible. You can use it to easily debug the interface using http commands. The most commonly used ones are GET and POST. What is an interface? To give a simple example, if there is a pet store that sells animal food, such as cat food and dog food, then the food sold is an interface. If the cat comes, it will sell cat food, and if the dog comes, it will sell dog food. What kind of chicken, duck, fish or something like that? Just modify this
Sep 02, 2024 pm 03:56 PM
VIM Editor Operation Guide
vim[parameter][file..]Edit the specified file or:vim[parameter]-Read text from the standard input (stdin) or:vim[parameter]-ttagEdit the file at the tag definition or:vim[parameter]- q[errorfile] Edit the file parameters of the first error:--After this, only the file name -v Vi mode (same as "vi")-e Ex mode (same as "ex")-EImprovedExmode-s Quiet (batch processing ) mode (can only be used with "ex")-d Diff mode (same as "vimdiff")-
Sep 02, 2024 pm 03:47 PM
Detailed explanation: Shell script variable judgment parameter command
The system variable $n is the parameter passed to the script or function. n is a number indicating the number of parameters. For example, the first parameter is $1, and the second parameter is $2$? The exit status of the previous command, or the return value of the function. Returns 0 on success, 1 on failure $#Number of parameters passed to the script or function $* All these parameters are enclosed in double quotes. If a script receives two parameters, $* is equal to $1$2$0The name of the command being executed. For shell scripts, this is the path to the activated command. When $@ is enclosed in double quotes (""), it is slightly different from $*. If a script receives two parameters, $@ is equivalent to $1$2$$the process number of the current shell. For a shell script, this is the process I when it is executing
Sep 02, 2024 pm 03:25 PM
How to use Golang logs to monitor your application?
But how do you use Golang logs to monitor your application? There are no exceptions in Golang, only errors. So your first impression may be that developing a Golang logging strategy is not a simple matter. Not supporting exceptions is actually not a problem, exceptions have lost their exceptionality in many programming languages: they are so overused that their usefulness is ignored. Before going further, we will first introduce the basics of Golang logging and discuss Golang logging standards, the meaning of metadata, and minimizing the impact of Golang logging on performance. With logs, you can track user activity in your app, quickly identify broken components in your project, and monitor overall performance and user experience.
Sep 02, 2024 pm 03:11 PM
Introduction to the classic and easy-to-use JavaScript framework Vue.js
This article aims to introduce a useful JavaScript framework Vue.js, so that readers can have a preliminary understanding of it. What is VueVue (pronounced /vjuː/, similar to view) is a progressive framework for building user interfaces. Unlike other large frameworks, Vue is designed to be applied layer by layer from the bottom up. Vue's core library only focuses on the view layer, which is not only easy to get started, but also easy to integrate with third-party libraries or existing projects. On the other hand, when combined with a modern tool chain and various supporting libraries, Vue is fully capable of providing drivers for complex single-page applications. Features of Vue - Computed properties It is very convenient to write expressions in Vue templates, but if you put complex
Sep 02, 2024 pm 03:05 PM
Ansible usage: simple use of ansible-playbook
ansbile-playbook is a collection of system ansible commands, which are written in the yaml language and run during the process. The ansbile-playbook commands are executed in a top-down order. At the same time, playbook has created many features. It allows you to transfer the status of a certain command to a subsequent command. For example, you can grab content from a file on one machine and attach it as a variable, and then use it on another machine. This allows you to implement some complex deployment mechanisms that are not possible with ansible commands. playbook is used through the ansible-playbook command. Its parameters are similar to the ansible command, such as the parameter -k(–as
Sep 02, 2024 pm 02:55 PM
Introducing ansible's Ad-hoc and commands modules
Ad-Hoc refers to a command that is temporarily executed under ansible and does not need to be saved. For complex commands, playbook will be mentioned later. When talking about Ad-hoc, we must mention modules. All command execution depends on pre-written modules. Ansible installed by default already comes with many modules, such as: command, raw, shell, file, cron, etc. , which can be viewed through ansible-doc-l. 1. Ad-hoc1. Direct execution. Let’s start with an example often used in the previous chapters: [root@361way~]#ansible10.212.52.252-a'upti
Sep 02, 2024 pm 02:16 PM
Centos 7 backup and restore Redis data
What is Redis? Redis is an in-memory key-value cache and store (i.e. database) that can also be persisted to disk. In this article, you will learn how to back up and restore your redis database on Centos7. Backup and Restore Instructions By default, Redis data will be saved to a .rdb file on disk, which is a point-in-time snapshot of the Redis data set. Snapshots are taken at specified intervals, so are perfect for backups. Data Backup In Centos7 and other Linux distributions, the default Redis database directory is /var/lib/redis. However, if you have changed the redis storage location, you can find it by typing: [
Sep 02, 2024 pm 02:02 PM
Linux's love-hate relationship with ping packages
By default, Linux systems allow ping, but in some cases, for security reasons, we set the server to disable ping. To temporarily allow the ping command, you can use the command: echo0>/proc/sys/net/ipv4/icmp_ignore_all. :0, represents permission; 1, represents prohibition of viewing the current settings: 0, for which we can ping and try using the ping command - t can continuously allow or prohibit ping. Modify the configuration file /etc/sysctl.conf and add a line as shown above. net.ipv4.icmp_echo_ignore_all=11 means prohibited.
Sep 02, 2024 pm 02:01 PM
Centos7 add delete Swap exchange partitions
Swap means: swap partition, similar to Windows virtual memory, but when the physical memory is insufficient, part of the hard disk space is used as virtual memory, thereby solving the problem of insufficient physical memory capacity. Advantages: cost savings. Disadvantages: Inadequate performance. This method is not limited to Centos7 and can be used on all Linux systems. Operating user: root. Add swap partition space. Use the dd command to create the swap partition file /dev/mapper/centos-swap, with a size of 2G: $ddif=/dev/zeroof=/dev/mapper/centos-swapbs=1024count=2048000. Format the swap partition. :
Sep 02, 2024 pm 01:50 PM
Centos 7 smoothly and seamlessly upgrades PHP7.1.0 to PHP 7.1.5
Experimental environment: CentOS Linux release 7.3.1611 (Core) Kernel version: Linux version 3.10.0-514.el7.x86_641. There are two ways to check the PHP version, and the display results are the same. The first one #/usr/local/php/bin/php-v The second one #php-vPHP7.1.0(cli)(built:Dec17201617:00:32)(ZTS)Copyright(c)1997-2016ThePHPGroupZendEnginev3.1.0- dev,Copyright(c)1998-201
Sep 02, 2024 pm 01:43 PM
Hot tools Tags

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version
Chinese version, very easy to use

Hot Topics









