Brief introductionsystemd is to control power on service, power on level and other functions by means of management unit.In / usr/lib/systemd/system directory, there are various unit files, including service unit with service suffix, power on level unit with target suffix, etc. here are the files about service suffix. Because system D needs t ...
Posted by baennaeck on Thu, 06 Feb 2020 01:46:46 -0800
In Linux, the timing task is executed by crond program. It is started by default after power on like SSH, network, rsyslog and sysstat. By default, crond checks every other minute to see if there are any tasks to perform. If you have special needs, such as executing once a second, you need to write daemons.
View the contents o ...
Posted by rascle on Sun, 05 Jan 2020 09:36:49 -0800
Here is an example of Laravel task scheduling. For related methods, please refer to: http://laravelacademy.org/post/8484.html
1. make:command generate task
php artisan make:command MigrateData
After executing the above command, a new Commands directory will be created in the Console directory, which contains a MigrateData. ...
Posted by alan007 on Wed, 01 Jan 2020 12:44:13 -0800
Recently, the project involves the function of a scheduled task, so I have studied the usage of crontab in recent days, and successfully opened this function on my computer according to the related online tutorials
Laravel + crontab
Add crontab configuration
1. Execute command
$ crontab -e
2. Add the following (path/to is the applicatio ...
Posted by lmhart on Wed, 25 Dec 2019 10:38:55 -0800
PM2 is a process management of Node application with load balancing function!
Built in load balancing (using Node cluster cluster module)
Can run in the background
It can shut down and reload in 0 seconds. (it can be understood that there is no need to shut down and restart, and we have updated the program w ...
Posted by igor berger on Mon, 23 Dec 2019 09:59:10 -0800
We need to back up the database once a minute. Let's start.
Create command file
php artisan make:comman BackupDatabase
Open the file you just created and change it to the following:
use Symfony\Component\Pro ...
Posted by dugindog on Mon, 02 Dec 2019 08:20:44 -0800
1.1 how to view index
1.2 manual index deletion method
1.3 script cleanup index
1.4 scheduled tasks
1.1 how to view index
01: I have installed elasticsearch, kibana and logstash on one machine
02:192.168.10.138 is the intranet IP address monitored by elasticsearch
03:9200 is one of the ports of elasticsearch
#How to view ind ...
Posted by Dan400007 on Sun, 01 Dec 2019 07:58:36 -0800
When a project goes online, it often needs to back up the database regularly to deal with uncertain environment and unknown problems. It is arranged as follows:
What is crond?
crond and crontab are inseparable. Crontab is a command, common in Unix and Unix like operating systems, which is used to set periodically executed instructions. The co ...
Posted by jswash on Thu, 07 Nov 2019 19:56:55 -0800
Cellery is a simple, flexible and reliable distributed system dealing with a large number of messages, and provides the necessary tools to maintain such a system.
It is a task queue that focuses on real-time processing and supports task scheduling.
What is task queue
Task queue: a mechanism to distribute tasks between thread ...
Posted by seaten on Mon, 04 Nov 2019 20:40:47 -0800
A log analysis script is added to syslog docker. The script uses the shortest edit distance algorithm to collect error logs and send them to the test environment alarm group. The script relies on logrotate. The next morning, the expected error collection alarm is not seen. It is found that logrotate is not working.
Posted by veluit06 on Sat, 19 Oct 2019 20:07:34 -0700