December 19 Work Study notes

Source: Internet
Author: User

1, Netstat-an | find/i/C "time_wait" Statistics the number of Windows TCP connection lines with the status "Time_wait"

2, Innobackupex--user=root--password=123456--databases=mysql/home/db_backup/with Xtrabackup backup database, can also do incremental backup

3, Zabbix monitoring log error check out, ntpd except:

({template_linux:log[/var/log/messages].regexp (Error)}) =0) and (({Template_linux:log[/var/log/messages].regexp ( NTPD)}) =0)

4. Monitoring Windows system logs

Eventlog[name,<regexp>,<severity>,<source>,<eventid>,<maxlines>,<mode>]

But this key does not monitor the Windows machine's normal log

5.

# Use If-elseif-else$value = $argsIf ($value-eq 1) {"Beijing"}elseif ($value-eq 2) {"Shanghai"}elseif ($value-eq    3) {"Tianjin"}else{"Chongqing"} # using Switchswitch ($value) {1 {"Beijing"} 2 {"Shanghai"} 3 {"Tianjin"} 4 {"Chongqing"}}ps c:\users\administrator\desktop>. \ck.ps1 2ShanghaishanghaiPS C:\Users\Administrator\Desktop > notepad.exe. \CK.PS1 #编辑ps脚本



This article is from the "Chuck's blog" blog, so be sure to keep this source http://chuckzeng.blog.51cto.com/10524728/1884071

December 19 Work Study notes

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.