Some Linux distributions provide GUI programs for system monitoring, such as SUSE Linux has a great and professional tool yast,kde the KDE System Guard is also excellent. Of course, to use these tools, you have to operate in front of the server, and
Under Linux/unix, CPU utilization (CPU utilization) is divided into user state, System State and idle state, respectively, the CPU is in user state execution time, system kernel execution time, and idle system process execution time. Usually
if (is_executable ("test.txt"))//to judge a file{echo "File executable"; Output results}else//If the file is not executable{echo "File not executable"; Output information}
//
Var_dump (Is_file ("Test.txt")). " "; To judge a fileVar_dump
First, the phenomenon of problems
Now network has two virtual machine host 95% CPU in idle state, memory usage is not particularly high, and the host load average reached more than 40.
Second, the problem analysis
First, Introduction
In any computer device, files are all necessary objects, and in Web programming, the operation of files has always been a headache for web programmers, and the operation of files in the CMS system this is necessary, very useful,
The full name of Fuse is "Filesystem in userspace", or "file system for User space", a kernel module that allows users to implement file systems in user space and mount them to a directory, just like a file system implemented in the kernel. There
First, Introduction
In any computer device, files are all necessary objects, and in Web programming, the operation of files has always been a headache for web programmers, and the operation of files in the CMS system this is necessary, very useful,
The two bottlenecks common to MySQL databases are CPU and I/O. CPU typically occurs when the data is loaded into memory or read from disk, when the data loaded is much larger thanMemory capacity, I/O bottlenecks can occur at this time, if it is a
1. Create a new user accountUseradd-The user name of the new parameterParameter description:-C remarks > Add note text. Note text is saved in the remarks field of the passwd. -D login directory > Specify the start directory for user login. -eDate >
The line terminator for Linux is: [$]The line terminator for Windows is: [$+ carriage return]Directory Management:LS, CD, pwd, mkdir, rmdir, treeFile Management:Touch, stat, file, RM, CP, MV, NanoDate Time:Date, clock, Hwclock, CalTo view text:Cat,
File attributes (Ls-lhi see the information)1.1 First column: Inode number 1.1.1 What is inodeThe file is stored on the hard disk, and the minimum storage unit for the hard disk is called "Sector" (sector). The size of each "sector" is 512 bytes
1. Indicator Range 1.1 User mode CPU utilization+ System Mode CPU UtilizationReasonable value: 60-85%, if the us+sy time in a multiuser system exceeds 85%, the process may take time to wait in the running queue, the response time and business
# # #以下使用的部分路径参数禁止未成年人观看 # #1 command function (brief description):Lists all files and directories under the current directory or in the specified directory , and LS is the abbreviation for list.2 Command syntax:ls "option" "Directory Name" #注: ""
First, the file systemThe 1.linux file system is a tree-like form that follows the Fhs-filesystem Hierarchy standard (file system directory Standards) protocol.2. File system form, you can use LS/(Tree/-l 1) to view the root directory:/:rootfs根目录├──
2.23/2.24/2.25 Find commandWhich search for files and file aliases, command #which lsWhere according to the library, to be updated, there are limitations #whereis lsLocate fuzzy search, not accurate #locate lsInstall locate, command for #yum install-
Stat Command : Detailed information of file/file system is displayed;use format : Stat file nameThe stat command is primarily used to display detailed information about a file or file system, which has the following syntax:-F does not display
If you want to know what your server is doing, you need to know some basic commands, and once you've mastered these commands, you're a professional Linux system administrator.Some Linux distributions provide GUI programs to Monitor the system, for
Commands to learn in this section:Cat (TAC), More,less,head,tail,cut,sort,uniq,wc,trSkills learned in this section: Directory ManagementFile ManagementDate TimeView textSplit screen DisplayText ProcessingSummary of File management commands:Directory
If you want to know what your server is doing, you need to know some basic commands, and once you've mastered these commands, you're a professional Linux system administrator.Some Linux distributions provide GUI programs to monitor the system, for
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.