Details of crontab command
Mail usage (use mail to view the execution of scheduled tasks)
centos system forbids normal users to use crontab command
Regular user-defined crontab scheduled tasks:
For example, oracle user defines a timing task: print the current directory every minute
[oracle@node2 ~]$ crontab ...
Posted on Thu, 13 Feb 2020 15:03:39 -0500 by f1nutter
Based on the author's usage in peacetime and some other reference materials, the following 50 basic Linux commands that must be mastered are carefully sorted out.
Log on to remote host
$ ssh -l jsmith remotehost.example.com
Debugging ssh client
$ ssh -v -l jsmith remotehost.example.com
Show ssh client version
$ ssh ...
Posted on Mon, 03 Feb 2020 11:43:59 -0500 by mgason
(1) Job overview
A Job is responsible for processing a short, one-time task, that is, a one-time task, which guarantees the successful completion of one or more pod s of a batch task.
Kubernetes supports the following jobs:
Nonparallel Job: usually create a Pod until its successful completion;
Job with fixed end times: add the comple ...
Posted on Wed, 15 Jan 2020 04:20:31 -0500 by Megalink
We use Python nmap to implement an efficient port scanning tool, which can help us find the abnormally open high-risk ports in time by combining crontab and email alarm. Of course, the tool can also be used as the availability detection of business service port, for example, scanning whether the Web service port 80s of 192.168. ...
Posted on Fri, 03 Jan 2020 10:33:10 -0500 by casty
Recently updated the module of creating push API interface, so if you want to do a function of regularly pushing wechat applet template messages, you only need three simple steps!
1. Add application
First, enter the vPush developer management console: https://dev.vpush.cloud
Then click Add application and add according ...
Posted on Thu, 02 Jan 2020 12:52:21 -0500 by Virii
There are two kinds of OS products: Solaris and Linux. When troubleshooting, students on site are often required to grab the bag. In order to grab the package conveniently, a grab script is made with shell.
The main functions are as follows:
1. Automatically identify the OS type, and use the corresponding packet grabbing comm ...
Posted on Thu, 02 Jan 2020 06:31:06 -0500 by dsantamassino
Why do we use label?When there are more and more objects of the same type of resources, they are divided into groups according to the label in order to improve the efficiency of resource management.
lable is a key-value pair attached to an object, such as a pod.You can specify it when an object is created or at any time after it ...
Posted on Sat, 28 Dec 2019 18:20:41 -0500 by nonlinear
1. Email engine of alarm system:
Because when making zabbix before, you used mail.py, which can be called directly here:
However, in the core of the alarm mail engine, the main configuration file of conf calls mail.sh, so you need to define the SH script to call mail.py:
The directory of mail.sh is used for alarm convergence. The purpose is ...
Posted on Sat, 21 Dec 2019 16:27:16 -0500 by melmoth
Install Python 3.6 environment
1. Install IUS software source
Install EPEL dependency
sudo yum install epel-release
Install IUS software source
sudo yum install https://centos7.iuscommunity.org/ius-release.rpm
2. Install python3.6
sudo yum install python36u
The shell command after insta ...
Posted on Wed, 18 Dec 2019 11:09:06 -0500 by thiggins09
In the Internet project, the final operation is to read the data, which is inseparable from the previous deletion, modification and query. So the data is the top priority, and the backup of the database is particularly important.
But it is obviously unrealistic to directly export the sql file of the whole database every time. It ha ...
Posted on Mon, 16 Dec 2019 01:00:57 -0500 by a-scripts.com