当我将服务器上的postgres连接到本地的postico时,我会得到以下错误
could not connect to server: Operation timed out
Is the server running on host "http://159.65.65.203/" (92.242.140.2) and accepting
TCP/IP connections on port 5432?
我在任何地方都找不到postgresql.conf和pg_hba.conf文件,所以我创建了这些文件,如下所示
我找到了这个解释,但仍然没有解决我的问题。
Ubun
我尝试使用docker-compose将特定的数据文件夹和postgresql.conf挂载到postgres镜像中。
这是我的docker-compose.yml示例:
postgres:
image: postgres:11
volumes:
- ./data/pg:/var/lib/postgresql/data #here is my specific data folder
- ./postgresql.conf:/var/lib/postgresql/data/postgresql.conf #here my custom pg conf
但我在启动时得到了
当我将服务器上的postgres连接到本地的postico时,我会得到以下错误
could not connect to server: Operation timed out
Is the server running on host "http://159.65.65.203/" (92.242.140.2) and accepting
TCP/IP connections on port 5432?
我在任何地方都找不到postgresql.conf和pg_hba.conf文件,所以我创建了这些文件,如下所示
📷
我找到了这个解释,但仍然没有解决我的问题。
Ubuntu
我决定创建自己的厨师脚本来安装Postgres。安装工作非常好,但是postgres在我vagrant reload时不会在启动时启动
这是我的食谱/default.rb:
include_recipe "apt"
apt_repository 'apt.postgresql.org' do
uri 'http://apt.postgresql.org/pub/repos/apt'
distribution node["lsb"]["codename"] + '-pgdg'
compo
嗨,我只是不能在PostgreSQL中安装timescaledb扩展。
CREATE EXTENSION timescaledb
VERSION "1.6.0";
保存后;消息"Connection to Server has been lost"
谷歌没帮上忙,已经试了好几个小时了。救命!
== Saving changes to: C:\Program Files\PostgreSQL\11\data\postgresql.conf
2020/03/18 21:39:26 Installing TimescaleDB library files...
嗨,我的头撞在墙上已经有一段时间了,我弄不明白。我正试图在我的OpenBSD框上设置一个postgresql服务器,并且无法从外部连接。目前,我更新了以下内容:
在pg_hba.conf中添加了以下行:
host all all 0.0.0.0/0 md5
更新的postgresql.conf侦听地址listenaddresses = '*'
成功重新启动postgresql
将以下行添加到pf.conf中,然后重新启动pf:
pass in on em0 proto tcp to any port 5432
当我试图将citus集群配置值放入postgresql.conf文件时:
citus.task_executor_type = "task-tracker"
我发现了一个错误:
service postgresql restart
Error: Invalid line 637 in /etc/postgresql/9.5/main/postgresql.conf: »citus.task_executor_type = "task-tracker"«
* No PostgreSQL clusters exist; see "man pg_crea
我有一个使用Docker容器部署的Rails应用程序。我正在为数据库使用PostgreSQL,并且我正在尝试设置WAL-E来对S3存储桶进行连续备份。此设置包括对postgresql.conf文件进行一些更改。
我使用postgres官方图像作为基础图像,并传入一个postgresql.conf文件。这是我的Dockerfile:
FROM postgres:9.4
MAINTAINER David Ham <me@example.com>
RUN apt-get update -y && apt-get install -y \
git \
py
我目前正在尝试通过Java程序远程连接Postgresql。我已经让JDBC驱动程序工作了,但是当我试图连接到数据库时,连接失败了,我得到了一个java.net.NoRouteToHostException: No route to host (Host unreachable)错误。
到目前为止,我已经做了以下的尝试来修复这些问题:
在包含postgresql数据库的服务器上,我修改了pg_hba.conf以包括试图连接的设备的IP地址:
# IPv4 local connections: host all all 127.0.0.1/32
我试着在码头写作中运行PostgreSQL。我不能创建我的自定义数据库。例如:
Dockerfile
FROM postgres:14.3
#pg_amqp
WORKDIR /code/pg_amqp-master
COPY ./conf/postgres/pg_amqp-master .
RUN apt update && apt install && apt install make
RUN apt install postgresql-server-dev-14 -y
RUN make && make install
Docker-co
在Kali linux上安装了GVM之后,按照说明运行gvm-setup命令来设置OpenVAS:https://linuxhint.com/install-openvas-kali-linux/ 但是,出现了以下错误: ERROR: The default postgresql version is not 13 required by libgvmd
Error: Use pg_upgradecluster to update your postgres cluster 因此,我通过以下命令检查了安装的PostgreSQL版本: $ su postgres
$ psql --versio
我在我的Mac服务器上分别安装了pgAdmin4和postgresql。我在本地的docker容器中运行了一个Spring引导应用程序
在应用程序中,我试图在连接字符串localhost:5433中给出jdbc:postgresql://localhost:5433/database1。然而,这并不是连接。
错误
Could not open JDBC Connection for transaction; nested exception is org.postgresql.util.PSQLException: Connection to 127.0.0.1:5433 refused. C