zoukankan      html  css  js  c++  java
  • 查看linux进程(强制中止进程),服务及端口号,

    进程状态查询 ps -aux

    [test@pan ~]$ ps -aux
    USER     PID    %CPU    %MEM    VSZ  RSS     TTY   STAT  START       TIME     COMMAND
    root         1      0.0        0.0       1672  516       ?        S       Apr21      0:00    init [5]        
    root         2      0.0        0.0           0    0       ?        S       Apr21      0:00    [migration/0]
    root         3      0.0        0.0           0    0       ?        SN      Apr21      0:00    [ksoftirqd/0]
    root         4      0.0        0.0           0    0       ?        S       Apr21      0:00    [migration/1]
    root         5      0.0        0.0          0    0        ?        SN      Apr21      0:00    [ksoftirqd/1]
    root         6      0.0        0.0          0    0        ?        S       Apr21      0:00    [migration/2]
    其中这个参数来列出所有的信息以提供自己检查程序的问题!在上面的程序列出当中,说明如下:
    USER:说明该程序是属于哪一个人的;
    PID:该程序的代号;
    %CPU:代表该程序使用了多少 CPU 资源;
    %MEM:代表该程序使用了多少的 RAM ;
    VSZ, RSS:占去的 ram 的大小( bytes );
    TTY:是否为登入者执行的程序?若为 tty1-tty6 则为本机登入者,若为 pts/?? 则为远程登入者执行的程序
    STAT:该程序的状态
    START:该程序开始的日期;
    TIME:该程序运行的时间?
    COMMAND:该程序的内容啦!

    进程终止:#kill -9 pid  或者 killall mysqld

    服务及端口号 netstat -anptu

  • 相关阅读:
    nginx之location匹配优先级和安全问题
    nginx--->高并发优化
    高并发处理方案
    检查Linux服务器性能
    浅谈Nginx负载均衡和F5的区别
    大数据不仅仅是海量数据
    自己实现C++的string类
    hihoCoder题目之Magic Box
    vim入门之配色方案(colorscheme)设置
    新开通博客,很是高兴
  • 原文地址:https://www.cnblogs.com/jdhu/p/4239310.html
Copyright © 2011-2022 走看看