Use the Apsara monitoring server to monitor whether the server is online or the service port status is down.

This document describes how to use shell on a unix host to monitor host survival and port survival.#! /Bin/bash# Author by fengzhanhai# It used by mon web service and net and host living# It was created on 2012-8-9# Webdate = 'date-d "today" + "% Y-%

Shell simple iptables script Management

As the new colleagues are not very familiar with the script, to facilitate the management of iptables on the server, they decided to write a simple script, so that colleagues who are not very familiar with the script can easily manage the script.

Shell array Summary

Arrays, as a special data structure, have a place in any programming language. Of course, bashshell is no exception. This article makes a small summary of the shell array.Here we will only discuss the situation of one-dimensional arrays, with regard

Shell script installation: htop, the latest tool for process management

The script content is as follows: #! /Bin/bash# Process management tool --- htop Echo "Checking System dependency package installation. Please wait ......"Yuminstallncurses-devel-y Echo "downloading the htop MAIN package ......"DOWNLOAD

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

Process control, function, and script debugging in Shell

Introduce Process Control in Shell, such as judgment statements... If statement: First, I want to know a few things: [-F "somefile"]: determines whether it is a file. [-X "/bin/ls"]: determines whether/bin/ls exists and has the executable permission.

One script for Mysql backup

DBAs are mainly responsible for database backup and recovery. It is important to back up the database effectively and restore the database in time when the database crashes, if you back up the database manually on Linux, it will cause a lot of

Common System Monitoring command shell script

As system O & M personnel, it is necessary to monitor important system parameters in real time, such as zombie processes, CPU utilization, memory usage, disk space usage, and system load balancing, based on the latest information, we can determine

Shell output function with color text

Some monitoring scripts or restart services. The failure is successfully output in red or green. A function is used to encapsulate this function. Function: receives string parameters, changes the OK in the received parameter [] to red, and the FAILD

Monitor VPS system resources using shell scripts

VPS was used a few months ago, with a traffic limit of GB per month, which is enough for convenient traffic. However, due to some malicious access, resources such as CPU and Memory consume a lot, as a result, the response time of a blog website on

Use iptables to prevent php-ddos packet Distribution

Recently, php-ddos flood, many web hosting service providers worry that their websites are implanted with php-ddos due to website permissions or vulnerabilities, and a large number of data packets are sent externally, this will cause unnecessary

Centos security configuration (common cases)

Note: The following is an excerpt from the book "familiar with linux system security and optimization.1. system security record files# More/var/log/secureCount the IP addresses and times of access.# Grep-oP '(\ d + \.) {3} \ d +'/var/log/secure |

Centos server prohibits single-user mode (single) to enhance system security

1. Linux forgets the root password and enters the single-user mode to change the password (1) about lilo 1. When lilo appears: Enter Linux single Lilo: Linux single 2. Press enter to directly access the Linux Command Line 3. Use the password command

Shell Command judgment execution syntax

Use semicolons for continuous execution Sometimes we want to write multiple commands under the command line. In this case, how can we perform this operation. As follows: #ls /tmp/xxxx ; echo '/tmp/xxxx'ls: /tmp/xxxx: No such file or

Configure Secure SSH on Centos

This article describes how to modify the default sshd settings to ensure sshd security and restriction, and protect your server from hacker intrusion. Every time you change the sshd configuration file, You Need To Restart sshd. In this way, your

Use fail2ban to prevent brute-force ssh and vsftpd password cracking

This article introduces fail2ban, a software used in linux to prevent brute force password cracking through monitoring logs. Fail2ban supports common services, such as sshd, apache, qmail, proftpd, sasl, and asterisk for password verification

Nginx automatically blocks excessive ip connections

You can use commands to view IP addresses that are too high for web connections, but you need to use AI to seal them. This is too troublesome. You can directly write a script to automatically resolve this issue. The web server uses nginx and python

Prevent independent ip addresses from being maliciously resolved by other domain names

Generally, websites can be accessed by domain names and IP addresses. Your website can be accessed directly through an IP address. This is no problem, but it may cause some risks: Because the search engine will also include the pages of your IP

CentOS Web server-based performance optimization

1. Website optimization Case Based on Dynamic Content1. Website running environment descriptionHardware environment: one IBM x3850 server, a single dual-core Xeon 3.0g cpu, 2 GB memory, 3 72 gb scsi disks.Operating System: CentOS5.4.Website

How to Prevent hackers using CentOS

Many people are learning about the Linux operating system. When we use the Linux operating system to access the Internet, we may encounter hacker attacks. This article describes some practical techniques for preventing hackers in the Linux operating

Total Pages: 1330 1 .... 769 770 771 772 773 .... 1330 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.