1.uptime
This command visually shows the average load of the server over the last 15 minutes, 5 minutes, 1 minutes
2.vmstat
Output the Vmstat information every 2 seconds, output 10 times altogether.
procs
Sometimes, when you maintain a Linux server, you face the error of displaying the file system (read only system), that is, the file system becomes read-only, there may be two reasons for this problem, one is the synchronization mechanism problems
Sometimes, when you maintain a Linux server, you face the error of displaying the file system (read only system), that is, the file system becomes read-only, there may be two reasons for this problem, one is the synchronization mechanism problems
To provide you with five of commonly used Linux monitoring scripts (see Host network card traffic, system monitoring, monitoring the disk space of the host, when the use of more than 90% of the space through the mail to send a warning, monitoring
The following settings are passed under the Host:winpro SP2 GUEST:RH9 environment. First in the setting, the virtual machine's NIC is set to Host-only.
(1) Check the properties of your network card connected to the network, select the "Advanced"
Whether it's a Linux installation or a manual installation, Linux asks you questions about the network and configures the relevant software. The basic command for configuring the NIC is Ifconfig.
After the ifconfig command is executed, the system
The following is an example of Telnet to port 22
Station91:~/shell/telnet_port # pwd
/root/shell/telnet_port
Station91:~/shell/telnet_port # Cat Telnet_port.sh
#!/bin/bash
RM telnet_result.txt >/dev/null 2>&1
Port_22=22
For I in $ (cat
As an interface between user programs and system hardware, the kernel plays an important role in ensuring that red Hat Enterprise Linux is applied to a wide range of physical and virtual hardware environments.
Identify the running kernel:
1.
Script Name: power.sh
Script content:
The code is as follows:
#!/bin/sh
Username3=$1
Dir_name2=$2
# Get existing Directory
File_path= $dir _name2
While True
Todo
If [D-$file _path];then
Break
Fi
file_path=${file_path%/*}
Done
dir_name2
1th step: If you want to restrict access to Linux via SSH IP, you can do the following:
First: Modify/etc/hosts.deny, add Sshd:all in it, and note that you can't add the # number.
Then: Modify:/etc/hosts.allow, in which the following settings are
Problem description
Solving method
Analyze the reason, maybe because I have a problem with my platform migration, we have permission to convert.
1 conversion under Windows:
Use tools such as UltraEdit or editplus to convert scripts to
Today to search the Internet to create desktop shortcuts, found that there are some irresponsible, problematic tutorials, so I also send a tutorial
Create a new Xxx.desktop file under your Home/desktop folder, plus Execute permissions
Copy Code
1. Virtual memory technology, Windows through the exchange of files to achieve, Linux through the swap partition to achieve. So Windows has only one partition, and installs Linux at least two partitions, one of which is swap partition, virtual
Many users in the Linux system installation GBK or GB2312 encountered garbled problem, this is mainly the system default language is UFT8, for the problem can be solved in five ways, the following small series to introduce Linux installation GBK or
In general, this situation appears in the Linux Chinese version of the installation of the English system selected Simplified Chinese installation, after the installation run Netconfig, Setup and other commands, Chinese display garbled.
As long as
When managing files under Linux, we usually have the need to delete expired files on a regular basis. For example, scheduled to delete more than the specified time log files, or longer, your log files occupy the larger space, that is not far from
If the server's time is messed up, it can cause a lot of unexpected problems. Using NTP, you can make the server get the right time to avoid problems.
NTP is a network time protocol, meaning "Network Time Protocol", is a TCP/IP protocol to achieve
My laptop's webcam has been useless, occasionally using VMware Player 2.0 to simulate MSN (in fact, not once in a while). Security is a serious distrust of this thing is usually not driven, suddenly reminded of the 6 group of serious cases the
Linux in the use of VI editor, VI appeared in the case of the card, and this situation often occurs, what is the cause of the VI card dead? The following small series to introduce the next VI card dead solution.
Opened another terminal to enter and
I am a debian+win7 dual system, startup encountered a number of small problems, in the search related blogs and friends of the help of successful repair, recorded in order to have a rainy day, but also hope to be able to help meet the same problem
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