Linux -- Shell multi machine distributing files and executing commands

It's a very practical tool. First, you need to set up ssh password free communication between machines. There are three documents 1.deploy.conf 2.deploy.sh 3.runRemoteCmd.sh Be careful: The three files are all in / home/hadoop/tools Directory; The first column of the deploy.conf configuration file is the host name of the ser ...

Posted on Mon, 03 Feb 2020 08:00:43 -0800 by jd023

mysql backup and crontab automatic backup under Linux

Using mysql dump of mysql to backup and restore data under liunx The crontab command can help us to automatically and regularly back up the database. Backing up a database #Create backup directory first mkdir -p /var/local/backup cd /var/local/backup #Backup database mysqldump -uusername -ppassword database > databas ...

Posted on Fri, 10 Jan 2020 09:25:06 -0800 by busin3ss

Yundun situation awareness system detects an emergency security event on your server: Mining Trojan

Problem Description: receiving Alibaba cloud's alarm notice Log in to the server to view the process: no process occupying too much CPU was found Check the / etc/ld.so.preload file, which connects to / usr/local/lib/libdns.so [root@SJ-pre-release ~]# cat /etc/ld.so.preload /usr/local/lib/libdns.so Check the / usr/loca ...

Posted on Sun, 29 Dec 2019 08:51:22 -0800 by nystateofmind27

Get some information under a tag of SegmentFault

Preface At present, segment fault has not opened API. In 2017, Gaoyang dada said Planned Even though I didn't use SegmentFault In PHP, I randomly wrote a code to obtain the information under a certain tag, which has no technical content and is used for timing acquisition The purpose is to help solve problems if they can be solved, or to report ...

Posted on Wed, 04 Dec 2019 08:12:52 -0800 by jcanker

SparkStreaming auto restart

The company's real-time streaming pipeline uses SparkStreaming to process data imported into Kinesis.There was a Streaming task termination before and no alarm was notified.Plus, there is currently only one person in the company's big data department. In order to prevent being called by the police one night to restart the service, we decided to ...

Posted on Sat, 30 Nov 2019 03:06:47 -0800 by sapna

Notes for deploying Python scripts in crontab

Sometimes it's good to execute Python scripts manually, but when deployed in crontab of Linux, you will encounter some problems. Recently, you finally have time to sort out the contents of this aspect. In fact, you have stepped on some pits that others have trampled on yourself! Here, I just list some minor problems, experience and energy probl ...

Posted on Tue, 20 Aug 2019 07:46:48 -0700 by barryflood22

[python] Timing Task Framework APScheduler uses

brief introduction APScheduler implements all the functions of Quartz based on a Python timing task framework of Quartz, which is very convenient to use. Tasks based on dates, fixed intervals, and crontab types are provided, and tasks can be persisted. Based on these functions, we can easily implement ...

Posted on Thu, 01 Aug 2019 02:47:04 -0700 by yarin

Linux Contrab Texts Girlfriend at 8:00 a.m.

It is said that programmed apes have no girlfriend== sweat, why should we black our handsome programmed apes? Today we are going to do a wave of Linux Contrab timed tasks to send messages to our girlfriend every day. Here I use the SDK of Ali Bigger's short message. The price of each short message is 0.045 yuan. One dollar is enough for half a ...

Posted on Mon, 03 Jun 2019 18:25:08 -0700 by coolen

Aliyun ECS Clearing Hidden Mining Procedure

Problem Description: An Aliyun server has received more than 95% continuous alarm CPU usage. But there is only one MySQL that is not frequently used in the business on this machine. There is no other MySQL. Normally, the CPU can't reach such a high level. Looking at the alarm information, we found that there was an implanted m ...

Posted on Tue, 14 May 2019 23:17:33 -0700 by Yamakazi

Playing Raspberry Pie Creates an Intelligent Voice Alarm Clock for Girlfriend

Preface Recently, I have learned more or less about Internet of Things (IOT) related technology in the work of Smart Factory. So there's a whim to think about what you can do. I happened to have heard some stories about raspberry pie before, so there's such an alarm clock. It should be noted that before reading this article, you should be at l ...

Posted on Sat, 11 May 2019 10:27:33 -0700 by lemmin