【问题标题】:Postgres: "Failed to load sql modules into the database cluster" and other errorsPostgres:“无法将 sql 模块加载到数据库集群中”等错误
【发布时间】:2021-07-04 08:35:40
【问题描述】:

我运行 Windows 并尝试安装 postgres,但无法使其正常工作。在安装过程中,我收到错误:

将sql模块加载到数据库集群失败

当我尝试在 pgadmin 中或通过 SQL Shell 访问服务器时,出现错误:

无法连接到服务器:连接被拒绝 (0x0000274D/10061) 服务器是否在主机“localhost”(::1) 上运行并接受端口 5432 上的 TCP/IP 连接?无法连接到服务器:连接被拒绝 (0x0000274D/10061) 服务器是否在主机“localhost”(127.0.0.1) 上运行并接受端口 5432 上的 TCP/IP 连接?”

我在数据文件夹中发现了一个日志:

2021-04-08 14:53:44.315 CEST [11088] LOG:  starting PostgreSQL 13.2, compiled by Visual C++ build 1914, 64-bit
2021-04-08 14:53:44.321 CEST [11088] LOG:  could not listen on IPv6 address "::": Permission denied
2021-04-08 14:53:44.326 CEST [11088] LOG:  could not listen on IPv4 address "0.0.0.0": Permission denied
2021-04-08 14:53:44.327 CEST [11088] WARNING:  could not create listen socket for "*"
2021-04-08 14:53:44.328 CEST [11088] FATAL:  could not create any TCP/IP sockets
2021-04-08 14:53:44.331 CEST [11088] LOG:  database system is shut down

有人可以帮帮我吗?

【问题讨论】:

  • 您使用的是什么安装程序?
  • @jjanes 我不知道,对不起,我使用的是我大学提供的链接:enterprisedb.com/downloads/postgres-postgresql-downloads我选择版本 13.2,Windows x86-64
  • 这是 Windows 的主要安装程序。我已经用过很多次了。您是从特权帐户还是普通帐户执行此操作的?你能找到一个特定于安装的日志文件吗,比如c:/Program Files/PostgreSQL/13/installation_summary.log
  • 我解决了,它创建了一个名为 postgres 的新 Windows 用户并将其安装为该用户

标签: postgresql


【解决方案1】:

我遇到了同样的问题,并遵循了互联网上提供的不同提示和技巧,但没有任何效果。

我通过以下步骤解决了这个问题:

  1. 首先禁用杀毒软件一小时
  2. 在 C 盘或 D 盘中创建一个文件夹并授予用户完全权限
  3. 然后再次安装新的应用程序。如果您已经安装,请卸载它并从头开始安装。
  4. 确保仅在安装时选择该文件夹

【讨论】:

    猜你喜欢
    • 2022-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-14
    • 1970-01-01
    • 2021-08-26
    相关资源
    最近更新 更多