[英]Postgres database port 5432. Is it connecting to the internet?
I am a newbie to connections.我是连接的新手。 I ran the following command on my ubuntu server: lsof -nP -iTCP -sTCP:LISTEN
and this came up, among other connections:我在我的 ubuntu 服务器上运行了以下命令: lsof -nP -iTCP -sTCP:LISTEN
并且出现了其他连接:
postgres 29826 postgres 7u IPv6 192275 0t0 TCP [::1]:5432 (LISTEN)
postgres 29826 postgres 8u IPv4 192276 0t0 TCP 127.0.0.1:5432 (LISTEN)
I am configuring my "ufw" firewall and trying to understand what is connecting to my server.我正在配置我的“ufw”防火墙并试图了解连接到我的服务器的内容。 Question is the following: Is this connecting in some way to the internet?问题如下:这是否以某种方式连接到互联网? I am assuming it is not, since the IP address is local.我假设它不是,因为 IP 地址是本地的。 Another question, is there a command to check only incoming and outcoming connections to the internet?另一个问题,是否有命令只检查传入和传出的 Internet 连接? Somewhat simplified so I can understand it better?稍微简化以便我可以更好地理解它?
Thank you very much非常感谢
You are right, that server is only listening on the loopback interface.您是对的,该服务器仅侦听环回接口。
You'll have to change the listen_addresses
parameter and restart PostgreSQL.您必须更改listen_addresses
参数并重新启动 PostgreSQL。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.