I have contributed a script to monitor the MYSQL process. I hope it will be helpful to you.
Function:
Monitors the MYSQL process and restarts upon failure. If the MYSQL process fails to be started, an Email notification is sent.
The Code is as
Function:
Monitor the MySQL process, the failure is restarted, if unable to start the email notification
The code is as follows:
The code is as follows
Copy Code
#!/bin/bash#/usr/bin/nmap localhost | grep 3306#lsof-i:33
Learn the time reference of this tutorial, http://blog.csdn.net/lxhjh/article/details/51751847.--------------------------------------------------------------------------------------------------------------- ------------------------------Several
Background
Server information:Server a:10.102.110.1Server b:10.102.110.2You need to transfer files from server A to Server B via SFTP.
Application project has a function, to pass the SFTP log file transfer, at the time of deployment,
Parameters :
-A or--text : Do not omit binary data.
-a or--after-context= : In addition to displaying the column that conforms to the template style, the contents after that line are displayed.
- B or--byte-offset : Indicates the number of
Add configuration information in the/etc/hosts/directory of Linux[ --Ten- + -: -: +][warn][org.apache.activemq.util.idgenerator: -] could not generate unique Stubjava.net.UnknownHostException:portal.test:portal.test:Name or service not known At
Command-line argumentsThe most basic way to pass data to a shell script is to use command-line arguments, which allow you to add data values to the command line when you run the scriptReading parametersBash Shell assigns some special variables
Here is a list of some of the operation of the string, convenient for later use when the query.1.capitalizePrint ("My name is Galen". Capitalize ()) #首字母大写My name is Galen2.centerPrint ("My name is Galen". Center (30, "-")) #字符串居中显示30个字节, the other
Today when using Springcloud to build a micro-service, using feign to do communication components, the results of errorjava.lang.IllegalStateException:Failed to Introspect Class [
Http://blog.csdn.net/yunsongice/article/details/5408802
The intelligent platform management interface (IPMI) is an industrial standard used to manage peripheral devices in an Intel-based enterprise-level system, you can use IPMI to monitor the
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.