Linux檢視啟動的服務的埠

漠孤烟發表於2024-08-27
ss -ntlp

輸出:

State      Recv-Q Send-Q                                                      Local Address:Port                                                                     Peer Address:Port
LISTEN     0      128                                                                     *:22                                                                                  *:*
LISTEN     0      100                                                             127.0.0.1:25                                                                                  *:*
LISTEN     0      50                                                                   [::]:8080                                                                             [::]:*                   users:(("java",pid=22175,fd=8))
LISTEN     0      100                                                                 [::1]:25                                                                               [::]:*
LISTEN     0      100                                                                  [::]:8081                                                                             [::]:*                   users:(("java",pid=409,fd=62))
LISTEN     0      100                                                                  [::]:8082                                                                             [::]:*    

相關文章