CentOS service process management

Source: Internet
Author: User
1. view processes view all httpd processes ps & ndash; ef | httpd view all httpd processes in a tree (-p stands for displaying branches) pstree & ndash; p | grephttpd2. & nb

1. View processes

View all httpd processes

Ps-ef | httpd

View all httpd processes in a tree (-p indicates displaying branches)

Pstree-p | grep httpd

2. view the port

Netstat-tunpl | grep httpd

Netstat-

3. close the process

Pkill <进程名字>

Kill-9 pid

 

4. View server performance load and logs

Process Manager in Linux

Top

Simple load viewing

Uptime

Recent important operations

Last

View system logs

Cat/var/log/messages

View current online

Who

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.