Job One:1) Add a 15G SCSI hard disk before opening the Linux system2) Turn on the system, right click on the desktop, open the terminal3) for the newly added hard disk partition, a primary partition size of 5G, the remaining space to the extended partition, on the extended partition divided 1 logical partitions, the size of 5GTo set the primary partition:To set an extended partition:To set the extension partition logical partition:To view partition results: 4) format primary partition as EXT3
with Semkey
-s semid removal of signals identified with Semid
5.uptimeThe following information is displayed in turn: The current time, how long the system has been running, how many users are currently logged in, the average load of the system in the past 1 minutes, 5 minutes, and 15 minutes.6.freeView the size of the memory space in the system.7.topThe system performance can be viewed dynamically, and the CPU, memory usage resources and related process information are analyzed.8.psTh
UptimeSystem time, run time, number of connections (no terminal counts a connection), system load within 1, 5, 15 minutesVmstat 1 3 Monitoring System CPU memory, sampling once a second, sampling four timesPidstat commandA. Need to install Yum install SysstatB.pidstat-p 2962-u 1 3 monitoring 2962 threads, sampling three times per secondC.pidstat-p 2962-T Thread Process informationSeveral
Recent need to collate commands for device performance monitoring (Linux)1. UptimeEg:22:59:10 up, 23:05, 3 users, load average:0.29, 0.43, 0.94One minute, five minutes, 15 minute load respectivelyRepresents the average number of processes waiting in the CPU wait queue per unit time2. free [-B | -k| -m] Specifies the output unitegTotal used free shared buffers Cachedmem:8041612 3954464 4087148 644068 382832
interrupts per second, and CS indicates the number of contexts per second;The parameters of the CPU are the same as the CPU parameters in top3, IostatIostat can provide detailed I/O information, the basic use of commands such as iostat-d-K 2 2, the parameter-D indicates that the device (disk) usage status;-K some columns that use block units force the use of kilobytes, and 2 means that the data display is refreshed every 2 seconds, The following show
If you are a Linux system administrator, there is no doubt that you have to spend a lot of time working on the command line: Installing and uninstalling software, monitoring system status, copying, moving, deleting files, checking errors, and so on. Most of the time you enter a command and wait a long time until the execution is complete. There are times when you execute a command that hangs, and you can only guess the actual situation of the command
I. Description of the OrderThe free command displays the usage of system memory: physical memory, swap memory (swap), and kernel buffer memorySecond, parameter description
-b-k-m-g: Display memory usage in bytes, KB, MB, GB, respectively
-L: Displays detailed low memory and high memory statistics
-O: Do not show-/+ Buffers/cache this line
-T: Show memory sum, Ram+swap
-S: Allows uninterrupted monitoring of memory usage over a
For ~ 6 these commands seem simple to be used separately, but they can exert their real power only when combined with redirection and regular expressions to form more complex functions or even automated scripts. Cmp and diff can be used for version control and compare the differences between two version files. They can also be used to compare program output. 1. cmp byte comparison
For ~ 6 these commands see
List of mysql common monitoring Script Commands[Java] #/bin/sh# Check whether mysql server provides services normallyMysqladmin-u sky-ppwd-h localhost ping# Obtain the Current Status values of mysqlMysqladmin-u sky-ppwd-h localhost status# Obtain the current connection information of the databaseMysqladmin-u sky-ppwd-h localhost processlist# Mysql dump data exportMysqldump-uroot-T/tmp/mysqldump test test_ou
current timePeak: Traffic PeaksRates: Average total traffic statistics for the past 2s 10s 40s, respectivelyIt is easy to find the most traffic-consuming IP through the Iftop interface, and it is easy to determine if there is a network bottleneck.Some operation commands after entering the Iftop screen (note case):Press H to toggle whether help is displayed;Press N to toggle the display of the IP or host name of the machine;Press S to toggle whether t
output parameter; –h according to human-readable format
The parameter-nr of sort indicates that you want to reverse sort by the number sort method
-N: Recognize numbers as numbers, not strings
-R: Reverse order
6. Processing data (sort) e.g. sort–t ': '-K 3-n/etc/passwd -t Specifies field delimiter-K only fields –n sorted by string value 7. Search data (grep) grep- v t file1 (output file1 does not contain t) grep- n t File1 (line number with T in output file1) grep- C T file1
1.load AverageTopUptime2.CPU UtilizationTop1 Multi-core CPU viewShift+h using threads to view-p Specifies the process to viewTop | grep Cpu3. Disk space remainingDf-H output by unit formatDu-H output by unit format4. Network trafficSar-n DEV 1 1-N Reporting Network statusDEV View network traffic for each network cardN Interval of secondsN Take a total of several5. Disk I/OIostat-d-K6. Memory usageFree-M in megabytes-G in GBVmstat [-v] [-n] [delay [count]]-V indicates print out version informatio
Linux system monitoring has the following commands:
Uptime: Display system load condition
Mpstat: Show CPU performance
Free: Displaying memory usage
Vmstat: Displaying virtual memory usage
Iostat: Show System I/O activity
Netstat: Displays the activity of the network
DF/DU: Displaying disk usage
1. Uptime
fdipzone@ubuntu:~$ uptime
00:06:00 up min, 2 users, load average:0.00, 0.03, 0.07
00:06
18 Common commands for monitoring network bandwidth on a Linux serverThis article describes some of the Linux command-line tools that you can use to monitor network usage. These tools can monitor data transmitted over a network interface and measure the speed at which data is being transmitted. The inbound traffic is displayed separately from the outbound traffic.Some c
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 example, SUSE Linux has a great and professional tool Yast,kde KDE system Guard is also excellent. Of course, to use these tools, you have to operate in front of
function is obtained from the/root/system.map file.
FLAGS and process-related digital IDs
1.10 Watch1.10.1 Command DescriptionReal-time monitoring commands, as well as commands to detect other command run conditions1.10.2 parameter Description-D Highlighting changes-N Period (seconds)1.10.3 Result DescriptionWatch–d–n 1 Netstat-antMonitor the network ev
If you want to know what your server is doing, you need to know some basic commands, and once you've mastered the commands, you're a professional Linux system administrator.
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 t
A good introduction and use of Linux IO monitoring commands.1. System Level IO monitoring IostatIostat-xdm 1 # Personal habits%util indicates how busy the disk is. 100% indicates that the disk is busy and 0% indicates that the disk is idle. Note, however, that disk busy does not represent high disk (bandwidth) utilizationArgrq-sz submitted to the drive layer IO r
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.