Shell Script Implementation Monitor iptables run State _linux shell

Recently in the debugging server iptables, oneself made a timed turn off iptables, but at night home rarely open a computer, so can not go to start iptables, of course, you may say, why not cancel timed shutdown iptables, I can only say that

Shell script implements monitoring Kingate and automatically launches _linux shell

vps

Oneself in the VPS do kingate service end, estimated the recent occupancy flow is too big, always be the service provider put my VPS reboot, but kingate this thing is once forced to end, is not boot, because to kingate.pid this file deleted to start,

Shell script Implementation Monitoring Iptables rule is modified _linux shell

Recently read an article through Nagios to realize MD5 real-time monitoring iptables status, I would like to see if the shell can also do monitoring iptables rule changes, after the experiment, there is the following script. System: CentOS 5.x

Shell script automatically deletes backup files above a specified size _linux shell

The recent local virtual machine space is always backed up to fill, in order to lazy don't want to log up every day to clear, just write this automatic cleanup script. System: CentOS 5.x Script content: Cat make_room.sh Copy Code code as

Shell command Bulk modify picture filename _linux Shell

Company colleagues today to find me help modify the filename, I see, well, hundreds of files to rename, file name format is _01.png _02.png so in turn, colleagues asked the front of the "_" to remove, fortunately, the request is simple, did not let

Shell script implements whether the file is consistent across the line server _linux shell

Sometimes you need to compare files consistently in your work, and you can do it with the following script (simpler): share it, hoping to help friends with the same needs Copy Code code as follows: #!/bin/bash #对比服务器上文件是否一样 # Richard

Shell script Bulk purge nginx cache _linux Shell

Foreword * With the development of the whole Internet, has produced numerous big and small website, along with the user to the website UI and the speed experience also is strengthening, to the enterprise or the individual, wins the user experience

Shell script to slow down system time (used when testing the server) _linux Shell

The company's recent server testing, the need to constantly adjust the system time, one or two is ok half, a little more points, on a variety of entanglements, the author of these several sets of the author is going crazy. Eldest brother: All speed

Shell script Implementation Batch Add user _linux Shell

Copy Code code as follows: useradd.sh #!/bin/bashFor name in Tom Joy John Mark JamesDo Useradd $nameecho "Redhat" | passwd--stdin $nameDone OK, after the execution, the new user will be automatically created Tom, Joy, John, Mark, James,

A simple shell script sharing _linux shell that monitors squid running processes and automatically restarts

Copy Code code as follows: #!/bin/sh While Sleep 30 Todo Squidnum= ' Ps-ef|grep squid|grep-v grep|wc-l ' #HttpNum = ' netstat-an|grep 0.0.0.0:80|grep-v grep|wc-l ' #80状态 If [$SquidNum!= 3]; Then /etc/rc3.duid start Adddate= '

Linux shell Script learning recording and playback terminal session _linux Shell

Copy Code code as follows: amosli@amosli-pc:~/learn$ script-t 2> timing.log-a output.session# start recording Script started, file is Output.session amosli@amosli-pc:~/learn$ Hello1 No command ' hello1 ' found, did you mean: Command ' Hello

Linux Nginx log Script _linux Shell

Task ScheduleCrontab-l1 * * * */home/dongnan/sh/split.sh >>/home/dongnan/sh/cron.log 2>& Nginx Logls/var/log/nginx/20130730-access.log.gz 20130801-access.log.gz 20130803-access.log.gz20130730-error.log.gz 20130801-error.log.gz 20130803-error.log.gz2

Linux build (load) dynamic library static libraries and load sample methods _linux Shell

Generation of dynamic libraries: 1,/*mysum.c*/ Copy Code code as follows: #include #include "src.h" int sum (int a,int b){return (A+B);} 2,/*mysum.h*/ Copy Code code as follows: #ifndef __src_h__ #

Shell Script Analysis Nginx The most and time-consuming pages of log visits (slow query) _linux shell

When the server pressure is larger, running very laborious time. We often do Site page optimization, will go to find those pages are more frequent, and more time-consuming. Find the addresses that are high and time-consuming, and the related

Print process number (PID) _linux shell with interface provided by kernel

C File Printpid.c Copy Code code as follows: #include #include #include #include #include static __init int printpid (void)//install module functions{struct Task_struct *task,*p;struct List_head *ps;int count=0;PRINTK

Ways to create Linux system services _linux Shell

Linux Environment: Ubuntu Copy Code code as follows: #! /bin/sh # Provides:server.sh # Default-start:2 3 4 5 # Short-description:server Testing ... Exec_path=/home/huangmin/cdev/project Exec=server

Linux command Details chkconfig command use method _linux Shell

Use syntax:chkconfig[--add][--del][--list][System Services] or Chkconfig[--level ][system Services][on/off/reset] Chkconfig Displays the usage when no parameters are running. If you add a service name, check to see if the service is starting at the

Linux View directory four ways (LS only show directory) _linux Shell

1.ls-d * Copy Code code as follows: amosli@amosli-pc:~$ ls-d * %appdata% Develop many Sorted.txt workspace Bank Documents Music Space Download 2. Find.-type d-maxdepth 1 If you do not add-maxdepth parameters, then

Linux automatically restarts Tomcat script sharing _linux Shell

Copy Code code as follows: #!/bin/bash # #chkconfig: 35 88 14 #description: Tomcat Auto Start script #script by Okhelper Case "$" in Start echo "Here is start script ..." java_home=/usr/jdk1.6.0_13; Export Java_home Jre_home= $JAVA

Shell script achieves precise cleanup squid cache _linux Shell

This script was modified on the Zhang Yi cache cleanup Script, the main is to add the IF option and optionally list the address of the cache file based on the parameter type (because it is not fixed, sometimes a particular JPG type, sometimes a

Total Pages: 541 1 .... 457 458 459 460 461 .... 541 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.