linux5432端口在哪里打开,在ubuntu上打开端口5432

linux5432端口在哪里打开,在ubuntu上打开端口5432我试图使用ufw使用sudoufwallow5432/tcp在ubuntu上打开端口5432然后我使用nmap来查看端口5432是否已打开,我得到了这个:[emailprotected]:~#sudonmap-sS-O127.0.0.1StartingNmap5.21(http://nmap.org)at2011-12-0114:28MSKNmapscan…

大家好,又见面了,我是你们的朋友全栈君。

我试图使用ufw使用sudo ufw allow 5432 / tcp在ubuntu上打开端口5432

然后我使用nmap来查看端口5432是否已打开,我得到了这个:

[email protected]:~# sudo nmap -sS -O 127.0.0.1

Starting Nmap 5.21 ( http://nmap.org ) at 2011-12-01 14:28 MSK

Nmap scan report for localhost.localdomain (127.0.0.1)

Host is up (0.000084s latency).

Not shown: 994 closed ports

PORT STATE SERVICE

22/tcp open ssh

25/tcp open smtp

80/tcp open http

587/tcp open submission

5432/tcp open postgresql

10000/tcp open snet-sensor-mgmt

Device type: general purpose

Running: Linux 2.6.X

OS details: Linux 2.6.15 – 2.6.30

Network Distance: 0 hops

OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .

Nmap done: 1 IP address (1 host up) scanned in 2.28 seconds

[email protected]:~# sudo nmap -sS -O 1xx.xxx.xxx.xxx

Starting Nmap 5.21 ( http://nmap.org ) at 2011-12-01 14:30 MSK

Nmap scan report for domain.info (1xx.xxx.xxx.xxx)

Host is up (0.000086s latency).

Not shown: 997 closed ports

PORT STATE SERVICE

22/tcp open ssh

80/tcp open http

10000/tcp open snet-sensor-mgmt

Device type: general purpose

Running: Linux 2.6.X

OS details: Linux 2.6.15 – 2.6.30

Network Distance: 0 hops

OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .

Nmap done: 1 IP address (1 host up) scanned in 2.65 seconds

1xx.xxx.xxx.xxx是我服务器的IP.

我编辑了pg_hba.conf:

# DO NOT DISABLE!

# If you change this first entry you will need to make sure that the

# database

# super user can access the database using some other method.

# Noninteractive

# access to all databases is required during automatic maintenance

# (custom daily cronjobs, replication, and similar tasks).

#

# Database administrative login by UNIX sockets

local all postgres ident

# TYPE DATABASE USER CIDR-ADDRESS METHOD

# “local” is for Unix domain socket connections only

local all all ident

# IPv4 local connections:

host all all 0.0.0.0/0 md5

# IPv6 local connections:

host all all ::1/128 md5

但是5432端口尚未打开.

你需要编辑你的pg_hba.conf:

host all all 192.168.0.0/24 trust

这允许每个来自192.168.0.0/24网络的连接.所有人的外卡都是0.0.0.0/0.更多信息here.

然后编辑postgresql.conf并更改listen_address:

listen_addresses=’*’

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/150963.html原文链接:https://javaforall.net

(0)
上一篇 2022年6月19日 上午8:00
下一篇 2022年6月19日 上午8:00


相关推荐

  • SAXReader从输入流中读取XML文件

    SAXReader从输入流中读取XML文件Mapmap newHashMap nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp 从 request 中取得输入流 nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp InputStreami request getInputStre nbsp nbsp nbsp 读取输入流 nbsp nbsp nbsp nbsp nbsp nbsp nbsp SAXReaderrea newSAXReader nbsp nbsp nbsp nbsp nbsp nbsp 生成 document 实体

    2025年11月14日
    4
  • ettercap 命令[通俗易懂]

    ettercap 命令[通俗易懂]本地主机:192.168.0.149目标主机:192.168.0.138/etc/ettercap/etter.dns,将dns欺骗到本机ettercap-T-q-iwlan0-Pdns_spoof-Marp////#攻击目标,网关地址-T文本模式-q安静模式P插件M开始中间人-T文本模式-G图形模式-D守护进程-M中间人-B双网卡之…

    2022年6月28日
    51
  • hdu 2176 取石子游戏

    hdu 2176 取石子游戏

    2022年2月5日
    47
  • 代码:小波包分解与重构、小波包能量特征提取

    代码:小波包分解与重构、小波包能量特征提取1 小波变换的理解傅里叶变换 短时傅里叶变换 小波变换 参考文献 以下两篇参考资料讲述得十分清楚 有助于理解小波变换 但具体的数学角度阐述 请参考其他资料 1 知乎专栏 形象易懂讲解算法 I 小波变换 https zhuanlan zhihu com p 2 知乎专栏 傅里叶分析之掐死教程 https zhuanlan zhihu co

    2026年3月20日
    1
  • 什么是DrawCall?「建议收藏」

    前言游戏开发圈里的人一定听过优化游戏要降低DrawCall,这样到底什么是DrawCall呢?Unity中应该如何降低DrawCall,这里就来讲解一下关于DrawCall知识点。1.是谁拖了后腿?通俗的来说就是Cpu:(#`O′)喂你好,是Gpu吗?快点醒醒我这里又有画画的任务了(Cpu调用Gpu的次数),打一个比方比如上传很多文件到百度云或其他地方时,都会把它压缩到一个文件夹里…

    2022年4月5日
    57
  • matplotlib:第一节 初窥门径,简单示例,plot()函数介绍

    matplotlib:第一节 初窥门径,简单示例,plot()函数介绍

    2022年2月20日
    46

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号