Bash script programming learning note 05: user interaction and script debugging

User interaction In learning note 04, we mentioned the location parameter, which is a way to pass the parameter to the script. Another way is the read command. [root@c7-server ~]# read name alongdidi [root@c7-server ~]# echo $name alongdidi The read command can read data from STDIN and store it in the variable specified by the user. It can be ...

Posted by Mirge on Wed, 08 Jan 2020 01:22:23 -0800

Qt prepare 25 offline map of security video monitoring system

I. Preface The function of offline map has only been completed recently. Many people have asked if there is any function of offline map for a long time ago. They have also roughly learned how to make offline map before. In fact, the core is not the code, but how to get free offline map files. Most of the offline map downloaders are charged onli ...

Posted by Henaro on Tue, 07 Jan 2020 23:02:39 -0800

Deploy Zabbix monitoring software

Monitoring is very important for operations and maintenance, which can be called the eyes of operations and maintenance personnel.A good monitoring system can help operators quickly find the root cause of the problem, reduce downtime, and improve the speed of troubleshooting.It can be seen from this that, as an operation and maintenance person ...

Posted by neverett on Tue, 07 Jan 2020 16:12:30 -0800

Deep understanding of libaio interface

Maybe everyone will use the libaio interface, but how does it interact with the kernel? What is the mechanism of the kernel? Let's follow the main process together. Entering: system call Dependent header file #include <errno.h> #include <sys/syscall.h> #include <unistd.h> Main functions: /* Actual syscalls */ int io_setup(int ...

Posted by slamMan on Tue, 07 Jan 2020 06:26:34 -0800

MySQL Index and Transaction Details

1. Preface In the previous chapter, we explained the manual compilation and installation process of MySQL and related database operation commands (sql statements). This article will introduce the concept and principle of MySQL index and transaction in detail, and initially understand the concept of MySQL database view, and briefly describe th ...

Posted by dodgyJim on Tue, 07 Jan 2020 02:15:28 -0800

Nginx installation, reverse proxy implementation, and in-depth optimization

I. Installation of NginxOn the basic concepts of Nginx, in previous blogs: https://blog.51cto.com/14227204/2464167With a detailed introduction, this blog post starts directly from the installation. Environmental preparation: Three centos 7.5, one running Nginx and two running simple web services, are designed to test the effectiveness of the ...

Posted by ohenewa on Tue, 07 Jan 2020 00:29:46 -0800

linux Server Opens IPv6

On the premise of the implementation of IPv6 in the National Network Telecom Office, IPv6 address configuration is required for the server. The configuration process outlines Ha: #cat ipv6.sh #! /bin/bash Ipv6=$1 Ipv4=$(dig +short $(hostname)) #Used to get the corresponding network card and change it as needed Time=$(date  +%Y%m%d%H%M%S) [[ $ ...

Posted by newmember on Mon, 06 Jan 2020 20:44:17 -0800

Making run Files from Local Sources

1. Use yum to download the necessary packages in a directory: yum install --downloaddir ./ --downloadonly nvidia-detect 2. Making script files: The script file needs unix format (only 0A line breaks, no 0D carriage return) and cannot be in window format.The last must be the end of 0A."Must be"######## End install.sh"before the ...

Posted by sangamon on Mon, 06 Jan 2020 18:09:06 -0800

Configuration of IPV4 in Linux

The nmcli connection show command enables you to view the identified network card name. [root@localhost ~]# nmcli connection show //Name UUID type device ens33 f45a714b-7ccc-4e58-9f52-e8a6c3027a15 802-3-ethernet ens33 virbr0 32b28b6a-4b00-4e7c-9a41-2217b2c25449 bridge virbr0   The network card configura ...

Posted by Pandolfo on Mon, 06 Jan 2020 14:40:34 -0800

Build lnmp+wordpress environment

Question Summary Nginx section Essential Library yum install -y wget vim gcc gcc-c++ zlib-devel pcre-devel openssl-devel Compile Options ./configure --with-http_stub_status_module --prefix=/data/wwwroot/nginx-1.17.1 --user=www --group=www --with-http_ssl_module Matters needing attention To be added start-up .../sbin/nginx Common Errors To be a ...

Posted by trink on Mon, 06 Jan 2020 14:30:06 -0800