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-%
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.
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
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
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
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.
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
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
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
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
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
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 |
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
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
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
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
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
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
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
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
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