The uptime command can show how long the system has been running, and the display of the information is: now time, how long the system has been running, how many users are currently logged in, the system's average load in the last 1 minutes, 5 minutes, and 15 minutes.
Uptime command usage is very simple: enter uptime directly.
There is also a parameter-V, which is used to query the version. (Note that the letter is uppercase V)
The code is as follows |
Copy Code |
[Linux @ localhost]$ Uptime–v Procps version 3.2.7 [Linux @ localhost]$ uptime
|
Display results as:
code is as follows |
copy code |
10:19:04 up 257 Days, 18:56, users, load average:2.10, 2.10,2.09 |
Show content Description:
10:19:04 /System Current time
up 257 days, 18:56 //host has run time, the greater the time, the more stable your machine.
user //user connection number, is the total number of connections instead of the number of users
load average /System average load, statistics of the last 1, 5, 15 minute system average load
So what is the system average load? The system average load refers to the average number of processes running in a queue at a specific time interval.
If the current number of active processes per CPU kernel is not greater than 3, then the performance of the system is good. If the number of tasks per CPU kernel is greater than 5, then this machine has a serious performance problem.