In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How to view and control processes in Linux
A program is a static collection of executable machine code and data stored in an external storage medium (such as a hard disk), while a process is a computer program that executes dynamically in CPU and memory. In Linux systems, one or more processes can be created after each program starts. For example, a httpd program that provides Web services may create multiple processes to provide services when a large number of users visit the Web page at the same time.
One: view and control the process
Use different command tools to view the status of the process from different angles.
1. View static process statistics-ps
ps aux ps-elf
A: displays all the process information under the current terminal
U: output process information in a user-based format
X: displays the process information of the current user under all terminals
-e: displays all process information in the system
-l: displays process information in a long format
-f: displays process information in a complete format
The meaning of the first row of list fields:
USER: the name of the user account that started the process
PID: the ID number of the process, which is unique on the current system
TTY: on which terminal the process runs. "?" The table is unknown or no terminal is required
STAT: shows the current state of the process, such as S (hibernating), R (running), Z (dead),
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.