There is a command in Linux that can perform system tasks on a regular basis. This is the Crond service. The following is an introduction to the use of the crontab command.
Linux task scheduling is mainly divided into the following two categories:
A cautious or disaster experience will make every system management aware of the importance of frequent system backups. You can do the backup task by writing a legacy shell script that works, or by using a backup tool (or several) that is
Malware refers to any software program designed to interfere with or disrupt the normal operation of the computing system. Although the most notorious types of malware, such as viruses, spyware, and adware, they attempt to cause differences: Some
First go to peanut shells or other dynamic domain names to apply for a free domain name.
1, the server first write the rules to prevent direct access to the SSH
-A INPUT DROP
-A Input-p TCP--dport 80-j ACCEPT
-A Input-p TCP--dport 22-s finy.hhks.
This article describes the implementation of PHP server state monitoring method. Share to everyone for your reference. The specific analysis is as follows:
PHP Server state monitoring is not done for many friends, only to see the site is dead to
Cron is a daemon that can be used to schedule execution of repetitive tasks based on a combination of time, date, month, and week.
Cron assumes that the system is running continuously. If the system is not running when a task is scheduled, the task
For PHP-FPM multiple process mode, to avoid the memory leak problem is very simple, is to let php-cgi processing a certain number of processes after the exit.Otherwise, memory leaks caused by PHP programs or Third-party modules (such as ImageMagick
PHP-FPM in the establishment of chroot, has a very good isolation, improve the security of the system, but to establish a reasonable PHP-FPM chroot environment is a bit more difficult, than the use of debootstrap and other tools to build more
First, the phenomenon of failure
Connect the business side colleague phone, one of the server can not SSH normal connection, also received the downtime SMS alert information. Ping directly the next host address can ping, SSH port connection hint:
Now that tripwire itself is fully ready, the next thing we need to do is use it to perform an integrity check.
Iv. maintenance of policy files and profiles if you want to browse the tripwire policy and configuration, but they are stored in binary
There are two ways to implement a task plan:
1. Perform a task at a future point in time
Two commands can be specified:
At
Batch
(The use of at is only indicated here)
At time
At> COMMAND
At> Ctrl+d
The specified time
Absolute time: hh:mm,
This article is translated from Isystemadmin, "a simple Shell Script to Backup MySQL Database"Shell scripts are scripts that let us write different types of commands that can be executed in this file. We can also do this manually by typing the
In the batch processing modeunder Use mySQL in the previous chapters, you interactively use the mysql input query and view results. You can also run MySQL in batch mode . To do this, put the command you want to run in a file, and then tell MySQL
Log files contain useful information about the events that occur in the system, which are often used during troubleshooting or during system performance analysis. For busy servers, the log file size grows extremely fast and the server consumes disk
The Linux system is controlled by the cron (Crond) system service. Linux systems have a lot of planned work on them, so this system service is started by default. In addition, because the user can set up scheduled tasks themselves, the Linux system
10.23 Linux Task Scheduler cron
The operation of the Cron Task Scheduler for Linux is done through the crontab command.
The crontab command is used to submit and manage the tasks that the user needs to perform periodically, similar to
Reference URL: http://www.runoob.com/linux/linux-command-manual.htmlwhich command:The which command is used to find and display the absolute path of a given command, and the environment variable path holds the directory that needs to be traversed
A recurring task schedule requires a package, uninterrupted monitoring time. CentOS7 need main package: Cronie (provides crond daemon and related AIDS)Recurring task scheduling requires first ensuring that the Crond daemon is runningCrond need to
Exercise 1:Monitor network cardrequirements: every 10 minutes to detect the specified network card traffic, if the network card traffic is 0, restart the network card! (Use cron Task Scheduler!) )Reference Answer:#!/bin/bash# date:2018 March 21 lang=
Article Title: Use inotify to monitor file system activities. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.