加入收藏 | 设为首页 | 会员中心 | 我要投稿 源码网 (https://www.900php.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

Linux 运维:使用 ss 命令代替 netstat

发布时间:2019-07-12 22:34:02 所属栏目:Windows 来源:佚名
导读:副标题#e# 在运维和管理 Linux 服务器的时候,我们最常用的一个命令就是 netstat,我常用这个命令来查看当前服务器上有哪些进程正在侦听端口,主要用来诊断网络服务的工作状态。 不过,最近有一次安装好一个 Ubuntu 发型版,发现默认没有安装 netstat,觉得

这是我自己摸索的一个参数组合,目前我背诵得还不是很流利,每次还需要看一下文档:

  1. State          Recv-Q           Send-Q                      Local Address:Port                       Peer Address:Port 
  2. LISTEN         0                128                         127.0.0.53%lo:domain                          0.0.0.0:*              users:(("systemd-resolve",pid=655,fd=13)) 
  3. LISTEN         0                128                               0.0.0.0:ssh                             0.0.0.0:*              users:(("sshd",pid=890,fd=5)) 
  4. LISTEN         0                5                               127.0.0.1:ipp                             0.0.0.0:*              users:(("cupsd",pid=30790,fd=7)) 
  5. LISTEN         0                128                               0.0.0.0:18025                           0.0.0.0:*              users:(("sshd",pid=890,fd=3)) 
  6. LISTEN         0                128                                  [::]:ssh                                [::]:*              users:(("sshd",pid=890,fd=6)) 
  7. LISTEN         0                5                                   [::1]:ipp                                [::]:*              users:(("cupsd",pid=30790,fd=6)) 
  8. LISTEN         0                128                                     *:9090                                  *:*              users:(("prometheus",pid=15415,fd=3)) 
  9. LISTEN         0                128                                  [::]:18025                              [::]:*              users:(("sshd",pid=890,fd=4)) 

(编辑:源码网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读