Linux Fundamentals: Network commands and process management

Source: Internet
Author: User
Tags pkill

 netstat lsof PS pstree pkill/kill (Learn about Jenkins git, troubleshoot the Environment) query server for links between (Netstat-an) whether a service is started (understanding the service's startup file, PS grep) (Learn about the port NETSTAT-TUNL for the service | grep 8080 View service-initiated listening port (NETSTAT-TULN) view Oasis corresponding Zookeeper,netstat-an|grep Zookepper port/ Oasis Port Look at each log-------------------------------------Pingifconfigtraceroutenetstatpskillpkill 1, 9, 15lsof--------------------------------------determine which services are starting to determine which ports are open to determine which service protocols are open for this machine netstat- tulnl-Monitor N-Display IP and port-------netstat-ana-all two parts, part of the data shows all the network connections (including the other side's IP and port), Part of the NETWORK service 22-SSH3306-MYSQL8080-HTTPD Apache-------netstat-rn Query Gateway information-------program run will start the process, a program may correspond to multiple processes. If the process consumes a lot of resources for a long time, the service pressure of this process is very large (MySQL corresponds to query optimization, server corresponding cluster) the process management goal is to determine the state of the server, view the process running state or kill the corresponding process. Top takes up the most resources of the process PS Aux/ps-le (the former UNIX format, the latter Linux format) with which can PS can see all the running process of the PID, the corresponding launcher, as well as the state of the application, according to the application can be started to determine the status of the process. ------------------------kill-l list all signals kill PID kill Process KILL-1/9/15 PID by the specified signal processing process 1,9,15 Restart Force abort normal termination ps tree can be seen in a better way, Parent-Child Process Pstree-p | grep Httpdpkill-The signal process name (HTTPD) service starts and closes preferably with a script, rather than using Pkill or kill---------------------------lsof to open all runningFile (everything in Linux is a file) lsof-p PID view PID corresponding process name Lsof-i: Port number View the process name for the port lsof-c httpd see what files Apache is using

Linux Fundamentals: Network commands and process management

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.