我正在尝试确定谁在我的环境中连接到 cassandra 实例。机器有 ip 172.31.44.23
。我运行命令sudo lsof -i -n -P | grep 9042 | grep ESTABLISHED | awk ' {print $9}'
我得到下面的输出
172.31.44.23:38082->172.31.44.23:9042
127.0.0.1:50067->127.0.0.1:9042
127.0.0.1:50068->127.0.0.1:9042
127.0.0.1:50069->127.0.0.1:9042
127.0.0.1:50070->127.0.0.1:9042
172.31.44.23:38087->172.31.44.23:9042
172.31.44.23:9042->172.31.112.109:34750
172.31.44.23:9042->172.31.114.115:42386
172.31.44.23:9042->172.31.107.171:20093
172.31.44.23:9042->172.31.107.171:53102
172.31.44.23:9042->172.31.44.23:38082
127.0.0.1:9042->127.0.0.1:50067
127.0.0.1:9042->127.0.0.1:50068
127.0.0.1:9042->127.0.0.1:50069
172.31.44.23:9042->172.31.114.23:35858
172.31.44.23:9042->172.31.114.115:42388
127.0.0.1:9042->127.0.0.1:50070
172.31.44.23:9042->172.31.44.23:38087
我知道连接格式适用local_address:port -> remote_address:port
于带有标志的 lsof。我如何理解 9042 端口是如何用于服务本机传输请求的?