zoukankan      html  css  js  c++  java
  • jetlinkscommunity启动报错 PostgreSQL数据库连接异常及解决方法

    使用:java -jar jetlinks-standalone.jar
    运行项目出现如下问题:

    Caused by: org.springframework.dao.PermissionDeniedDataAccessException: Open R2DBC Connection; Ident authentication failed for user "postgres"; nested exception is io.r2dbc.postgresql.ExceptionFactory$PostgresqlAuthenticationFailure: [2for user "postgres"
    

    原因:postgresql数据库连接异常
    host all all 127.0.0.1/32 peer
    修改为
    host all all 127.0.0.1/32 md5

    这一条:host all all 0.0.0.0/0 password
    主要是解决测试时候远程连接问题,任何客户端在任何ip都可以连接

    
    # TYPE  DATABASE        USER            ADDRESS                 METHOD
    # "local" is for Unix domain socket connections only
    local   all             all                                     peer
    # IPv4 local connections:
    host    all             all             127.0.0.1/32            md5
    # IPv6 local connections:
    host    all             all             ::1/128                 ident
    # Allow replication connections from localhost, by a user with the
    # replication privilege.
    local   replication     all                                     peer
    host    replication     all             127.0.0.1/32            ident
    host    replication     all             ::1/128                 ident
    host    all             all             0.0.0.0/0               password
    
    
  • 相关阅读:
    jmeter 数据库类型的脚本
    jmeter 协议到脚本编写
    python socket粘包
    微信公众号开发
    常用windows和office激活工具
    分辨率等概念
    设置单元格同高或同宽
    单元格内容前或后增加内容
    单元格内数字复制和递增
    excel单元格内容换行
  • 原文地址:https://www.cnblogs.com/InternetJava/p/15731297.html
Copyright © 2011-2022 走看看