Deploy asynchronous download service

Asynchronous Download 1, Background At present, the system is slow to download large files, slow to export, a large number of interfaces occupy server bandwidth and other problems, which seriously affect the user experience. Based on this background, the asynchronous download function is developed and implemented. 2, Project structure Brain ...

Added by fuzz01 on Tue, 26 May 2020 18:42:40 +0300

Using zabbix to monitor the CPU usage of LPAR

hyptop command This command belongs to zlinux tools. Redhat 6 for z comes with this command. As long as there is a linux Lpar on the mainframe, you can use this command to see the CPU usage of all lpars. hyptop The following command can be used to output the real-time CPU usage of each LPAR of the large machine with ...

Added by ozkan on Fri, 17 Apr 2020 19:56:34 +0300

On Mac, kill the process regularly according to the process name / restart the process by the way of Daemons

Reference blogger article https://blog.csdn.net/u010976445/article/details/50819287 To kill and restart pycharm program under Mac as an example to write script, using Python 3.6 environment 1, Kill process ps -ef | grep pycharm | awk '{print $2}' | xargs kill -9  # After ps -ef | grep pycharm | awk '{print }' | xargs is exe ...

Added by weedo on Mon, 06 Jan 2020 19:23:08 +0200

Python gets datax execution result and saves it to database

Execute the datax job, create the execution file, and execute at 1 point every day in crontab (related below): The two rows of record, job start and job finish, are added by themselves, so as to identify which table is convenient. #!/bin/bash source /etc/profile user1="root" pass1="pwd" user2="root" pass2="pwd" job_path="/opt ...

Added by nbaxley on Sun, 05 Jan 2020 08:19:19 +0200

5. ansible management task plan, ansible installation package and management services, playbook using ansible

1. ansible Management Task Plan # ansible testhost -m cron -a "name='test cron' job='/bin/touch /tmp/1212.txt'  weekday=6" Name specifies the name of the task plan, job specifies what its command is, and then it specifies its time-sharing day, month, week, or *. [root@yw02 ~]# crontab -l #Ansible: test cron * * * * 6 /bin/touch /tmp/1212.txt T ...

Added by Gibb Boy on Thu, 05 Dec 2019 04:46:06 +0200

[play Python] create an intelligent voice alarm clock for girlfriend

Before reading this article, you should be at least a program ape that can install the operating system. You should know Linux, Python, and most importantly, you should have a girlfriend. Of course, it doesn't matter. After reading this article, you try to make such an alarm clock. Maybe... Software and hardware list Card reader and SD card ...

Added by kr3m3r on Wed, 16 Oct 2019 10:42:58 +0300

Linux Scheduled Task Management

In the actual production environment, there will always be some regular tasks, such as data backup, we can not always wait until that time to perform manually, then planning tasks will come into use. One-time Planned Tasks at One-time Planned Tasks at [HH:MM] [YYYY-MM-DD] Set up, press Ctrl + D to exit 1. Get the current time of the system ...

Added by JasonGreen on Wed, 02 Oct 2019 22:52:43 +0300

Nginx Log Configuration, Log Cutting

Nginx Log Configuration Set access.log grammar log_format custom format Set error_log grammar Log Cutting Previous articles: Nginx's configuration file nginx.conf Nginx logs are useful for statistics and system service troubleshooting. There are two main types of Nginx logs: access_log and error ...

Added by elklabone on Thu, 26 Sep 2019 06:04:10 +0300

Full set of shell web monitoring scripts

shell web monitoring script, the whole set is in it, decision rules changed several times, multiple combinations can see the old version, follow-up lazy to write new. Old version links: https://blog.51cto.com/junhai/2407485 This time there are three scripts, write down the process of implementation. The effect of calculating failure time is as ...

Added by theonlydrayk on Sat, 14 Sep 2019 12:17:09 +0300

CentOS 7 Process and Scheduled Task Management (Theory + Practice)

View and control processes The relationship between programs and processes program Executable code and data stored on media such as hard disks, discs, etc. Statically saved code process Program code running in CPU and memory Code executed dynamically Parent and Child Processes Each process can create one or more processes Simply put, ...

Added by crees on Tue, 27 Aug 2019 21:14:23 +0300