In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail about the use of linux's ss command to display active sockets. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Ss is the abbreviation of Socket Statistics. The ss command is used to display socket information that is active. It can display something similar to netstat. But the advantage of ss is that it can display more and more detailed information about TCP and connection status, and is faster and more efficient than netstat.
Syntax format: ss [parameters]
Common parameters:
-n does not resolve the service name Digitally displayed-a displays all sockets-l displays sockets in monitored state-o displays timer information-e displays detailed socket information-m displays memory usage of sockets-p shows processes using sockets-I displays internal TCP information-s shows sockets usage profile-4 displays sockets for ipv4 only-6 shows sockets for ipv6 only-0 Show PACKET sockets-t only show TCP sockets-u show only UDP sockets-d show only DCCP sockets-w show only RAW sockets-x show only Unix sockets-D
Dump the original TCP socket information to a file
Reference example
Display TCP sockets:
[root@linuxcool] # ss-t-a
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 0.0.0.0:ssh 0.0.0.0 *
ESTAB 0 52 192.168.60.19:ssh 192.168.30.21:59321
LISTEN 0 128 *: websm *: *
LISTEN 0 128 [::]: ssh [::]: *
Display UDP sockets:
[root@linuxcool] # ss-u-a
State Recv-Q Send-Q Local Address:Port Peer Address:Port
UNCONN 0 0 0.0.0.0:bootpc 0.0.0.0 *
UNCONN 0 0127.0.0.1purl 323 0.0.0.0purl *
UNCONN 0 [:: 1]: 323 [::]: *
Displays an overview of socket usage:
[root@linuxcool] # ss-s
Total: 185
TCP: 4 (estab 1, closed 0, orphaned 0, timewait 0)
Transport Total IP IPv6
RAW 1 0 1
UDP 3 2 1
TCP 4 2 2
INET 8 4 4
FRAG 2000 on the use of linux's ss command to display active sockets information is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.