Regular tasks of ordinary users in linux

Reference resources: 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

50 Linux Basic Operations Commands Must Be Mastered

Explain: 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. Command: 1. ssh 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

Job s and cronjobs of Kubernetes

I. Job (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

Efficient port scanning in Python 3

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

Wechat applet template messages are pushed regularly, which only needs three simple steps

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

Bash script realizes the function of automatic package grabbing on Solaris/Linux

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

Labels, Daemonset, Job Resource Objects for k8s

Label (Label) 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

74: alarm system email engine operation alarm system

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

Python 3.6 script backup mysql database

Environment cnetos7.3+python3.6+mysql5.7 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

Full backup and incremental backup of mysql in liunx system

Precondition 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