In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Lab list: managing processes and setting up scheduled tasks
Requirements: managing processes in the system
Set up system administration tasks that are scheduled to run
Steps:
1 manage the ground process in the system
Start the portmap service in the system, confirm the running status of the service, and view the process information of portmap through the ps or pgrep command
Ps: view static process statistics, a: display all process information under the current terminal, u: use user-based format to output process information, x: display current user's process information under all terminals,-e: display all process information in the system,-l: display process information in long format,-f: display process information in complete format
Ps-elf: displays all the process information in the system in a long format
Ps aux: all process information will be displayed in a simple list
Execute the "cpuburn-in 10" command from another terminal, conduct a ten-minute high load test, find the cpu high occupancy pid number, and terminate its operation
Mount mounts / dev/cdrom under the / media/ directory
Cd changes the / media/ directory, and the ls list displays the contents of the directory
Extract cpuburn-in 's cpu testing tool and release it to the / opt/ directory
The Pgrep command can specify the name of a part of the process to query, combined with the-l option to query the process running on a specific terminal
-U: options query processes for specific users, and-t: options query processes running on specific terminals
Pstree: view the process tree (--displays the name of a process by default)-an option to list the complete command information-u: you can list the corresponding user name,-p: you can list the corresponding ID number at the same time
Pstree-aup: command to view the process tree of the current system
To use the kill command to terminate a process, you need to use the PID process number as an argument
2 set up system management tasks that are scheduled to run
Confirm to start the crond system service
Execute "crontab-e" to set up and plan tasks according to requirements
Execute "crontab-l" to view a list of scheduled tasks for all settings
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.