1.uptime commandOutput: 16:11:40 up, 4:21, 2 users, load average:0.00, 0.01, 0.002. View the/proc/uptime file calculation system start timeCat/proc/uptimeOutput: 5113396.94 575949.85The first number is the system has been running for 5,113,396,.94
Linux process viewing and managementBasic features of the OS: file system, network functions, process management, memory management, drivers, security featuresprogram = instruction + dataCpu:Privileged DirectivesGeneral InstructionsProgram execution
SHOW STATUS;FLUSH STATUS;View current number of connections show STATUS like ' thread_% ';Thread_cached: The number of threads being cachedThread_running: The number of threads in the active stateThread_connected: The number of threads currently
Linux Login Prompt ( static / dynamic MOTD) when the user enters a password or uses the key to After logging in, let the server automatically perform several simple actions for us, such as printing prompt information, printing exception information,
When there is a problem with the Linux system, we not only need to look at the system log information, but also use a lot of performance monitoring tools to determine what part (memory, CPU, hard disk ...). ) out of the question. In the Linux system,
Day 3: Select Conditions
Outline
Application Instance Analysis
Conditional Test
If... Else... Fi
Case... In... Esac
Implementation menu:
After the script is executed
Press 1 to display the current time
Press 2 to display the CPU load
Press 3 to
Day Three: Conditional selection
Outline
application Example Analysis
Condition test
if...else...fi
Case...in...esac
Implement function Menu :
After executing the script
Press 1 to display the current time
Press 2 to show CPU load
Performance diagnostics for Linux in 60,000 millisecondsWhen you log on to a Linux server in order to solve a performance problem: What should you check in the first minute?At Netflix, we have a huge EC2 Linux cloud, as well as a number of
Need to monitor Linux server system performance? Try the following built-in system or attachment tools. Most Linux releases are equipped with a large number of monitoring tools. These tools provide metrics that can be used to obtain relevant
A Linux server Performance View 1.1 CPU Performance View 1, view the number of physical CPUs:cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l2. View the number of cores in each physical CPU:cat /proc/cpuinfo |grep "cpu cores"|wc -l3, the number
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.