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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • [高通MSM8953_64][Android10]移除开机进入充电界面

    [高通MSM8953_64][Android10]移除开机进入充电界面文章目录开发平台基本信息问题描述解决方法开发平台基本信息芯片:MSM8953_64版本:Android10kernel:msm-4.9问题描述在移植开发Android10的时候,一开始是用debug版本编译调试的,一直都很正常,然后,准备提交测试的时候,编译user版本却无法正常进入系统,一直在开机logo跟充电界面循环跳转。这是因为设备进入了关机充电模式导致的,在lk阶段,将充电界面屏蔽,即可正常进入系统。解决方法diff–gita/bootable/bootloader

    2022年10月20日
    2
  • 数据分层之DWD

    数据分层之DWD1DWD是什么?明细粒度事实层以业务过程作为建模驱动,基于每个具体的业务过程特点,构建最细粒度的明细层事实表。可以结合企业的数据使用特点,将明细事实表的某些重要维度属性字段做适当冗余,即宽表化处理.明细粒度事实层(DWD)通常分为三种:事务事实表周期快照事实表累积快照事实表。2DWD中的信息有什么?事实表中一条记录所表达的业务细节程度被称为粒度。通常粒度可以通过两种方式来表述:一种是维度属性组合所表示的细节程度,一种是所表示的具体业务含义。作为度量业务过程的事实,通常为整型或浮点型的十

    2022年6月26日
    38
  • $(function(){})与window.onload的区别

    $(function(){})与window.onload的区别

    2022年2月23日
    54
  • linux抓包-tcpdump

    linux抓包-tcpdump文章目录1.tcpdump简介2.tcpdump参数3.tcpdump过滤器4.tcpdump常用操作1.tcpdump简介tcpdump是linux平台的抓包工具,可以抓取TCP/IP协议的数据包,网络协议,主机,端口,还提供and,or,not等逻辑语句过滤信息。2.tcpdump参数tcpdump帮助查看tcpdump-h,mantcpdump[root@master~]#tcpdump-htcpdumpversion4.9.2libpcapversion1.5.3

    2022年6月17日
    35
  • C++ 数值与 string 的相互转换

    C++ 数值与 string 的相互转换使用函数模板将基本数据类型(整型、字符型、实型、布尔型)转换成string。//ostringstream对象用来进行格式化的输出,常用于将各种类型转换为string类型//ostringstream只支持<<操作符template<typenameT>stringtoString(constT&t){ostringstreamoss;//创建一个格式化输出流

    2022年5月14日
    36
  • Redis的bind的误区

    Redis的bind的误区今天在搭建 Redis 服务集群的时候 发现自己一直以来对 Redis 中 bind 的理解的一个误区 在今天以前 我一直认为 Redis 中的配置文件中的 bind 的作用是 用来限制 Redis 服务器用来接收来自哪些服务器 IP 地址 的 Redis 连接请求 即 只有在 bind 指定的 IP 地址的计算机才可以访问这个 Redis 服务器 直到今天我才知道以上的理解都是错误 例如 bind127 0 0 1

    2025年10月30日
    7

发表回复

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

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