Batch clear Nginx cache using Shell scripts

Preface * with the development of the entire Internet, there have been countless websites, large and small. As a result, users are increasingly enhancing their website UI and speed experience. For enterprises or individuals, winning the user

The shell script automatically fixes corrupted mysql tables.

Recently, I checked the mysql database server log and found a Table corruption ERROR log, for example, 1207247: 30: 48 [ERROR]/data/soft/mysql/libexec/mysqld: Table '. /blog/wp_links 'ismarkedascrashedandlast (automatic ?) The repairfailed is normal

Process control, function, and script debugging in Shell

Introduce Process Control in Shell, such as judgment statements... If statement: first, learn a few knowledge: [-f "somefile"]: Determine whether a file is [-x "/bin/ls"]: determine whether/bin/ls exists and has the executable permission [-n "$ var"]

A question about text editing and drawing in GTK2.0

A question about text editing and drawing in GTK2.0-Linux general technology-Linux programming and kernel information. The following is a detailed description. I created a text editor under GTK2.0 using textview, but at the same time I need to

Shell script for intelligent viewing

First, I did not write the script functions here. If you are interested, you can do it yourself. You have not written the shell script for a long time. If you write this script today, you should review it, I have been using python for a long time.

Add and delete apahce VM in shell script and check whether the VM is normal

1install sendemailtarxvfsendemail-v1.56.tar.gz mvsendEmail-v1.56sendEmail2 add apache Virtual Host shell script: viaddVirtual. sh #! /Bin/bashcat & lt; EOF & gt;/etc/httpd/conf/httpd. conf & lt; VirtualHost *: 80 & gt ;& 1. Install sendEmail Tar xvf

Five common centos server monitoring script codes

Five common Linux monitoring scripts are provided for you to view the disk space of the host Nic traffic, system status monitoring, and host monitoring, when the usage space exceeds 90%, you can send a mail to send a warning, monitor CPU and memory

The system cannot be started !!!!!!!!!!!!

The system cannot be started !!!!!!!!!!!! -- Linux general technology-Linux technology and application information. For details, refer to the following section. /Etc/TPD/presession/default: registering your session with wtmp and utmp

Shell implements a simple process monitoring script

#! /Bin/bashNAME = javaNOP =/bin/trueDATE = $ (/bin/date + "% Y-% m-% d % H: % M: % S ") ps-ef | awk-F "" '{print $8, $2}' | grep ^ java & gt;/dev/null2 & gt; & amp; 1 case "$? "In0) # Itisrunninginth #! /Bin/bash NAME = java NOP =/bin/trueDATE = $

Is usbnet the driver of the wireless network card?

Whether USB net is the driver of the wireless network adapter-general Linux technology-Linux programming and kernel information. The following is a detailed description. Recently, I saw an article on Linux kernel and driver programming on the

How to share subfunctions please help me

How to share sub-functions, please help me-Linux general technology-Linux programming and kernel information, the following is a detailed reading. The program in hello. sh is #! /Bin/bash Function test1 { If [$1-eq "666666"] Then Ehco "hello,

Shell programming special variable -- location variable

Shell special variables & #9758; location variables 1 and $0 get the file name of the current script, including the path. # Write a test script vimtest. sh # The content is as follows: dirname $0 basename $0 # execute bash $ (pwd)/test. sh # output:/

Use shell scripts to monitor website status

Recently, the server room where the company is located is often unable to access the website due to attacks and network faults. In order to be able to know that the website is inaccessible for the first time and quickly solve the problem, tley uses

Common CentOSShell skills: findxargs

File SEARCH Command find: The following shows the main application example of the find command:/& gt; ls-l # list the test files contained in the current directory-rw-r --. 1rootroot48217Nov1200 File SEARCH Command find:The following is an example

Analyze apache Log Status Codes Using shell scripts

1. First, cut apache logs by day vi/etc/httpd/conf/httpd. confErrorLog & quot; | rotatelogs/var/log/httpd/% Y % m % derror_log864001_& quot; 1. First, cut apache logs by day Vi/etc/httpd/conf/httpd. confErrorLog "| rotatelogs/var/log/httpd/% Y % m %

Question about the floating point and integer output by printf

About the problem of printing f output floating point and integer-Linux general technology-Linux programming and kernel information, the following is a detailed description. [I = s] This post was last edited by WinnerLinner at 8-8-3 20:56. After

Yum source settings

Yum source settings-general Linux technology-Linux technology and application information. For more information, see. $ Yum update Plugin "product-id" can't be imported Plugin "subrole-manager" can't be imported Loaded plugins: refresh-packagekit

Shell size comparison

#! /Bin/basffe [$ 1-gt $2] thenecho & quot; $1 & gt; $2 & quot; elseecho & quot; $2 & gt; $1 & quot; fi # Number judgment commands #-gt is greater than meaning #-lt is less than #-eq is equal to #-ne is not equal to #-ge is greater than or equal to #

Commands related to shell time Retrieval

Linuxshell get time and time interval (ms level) Description: During some performance tests, sometimes we want to calculate the time for a program to run, sometimes you may write a shell script to control the performance test (such as running N

Specify the NIC name for the server version suse10sp3

In the server version of suse10sp3, specify the NIC name -- general Linux technology-Linux technology and application information. For details, refer to the following section. 30-network-name under/etc/udev/rule. d. Rule (this name should be used,

Total Pages: 2732 1 .... 1518 1519 1520 1521 1522 .... 2732 Go to: GO

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.