Q2TG icon indicating copy to clipboard operation
Q2TG copied to clipboard

部署到服务器docker上如何在本地连接数据库?

Open lancer-wang opened this issue 3 years ago • 2 comments

本地连接不上,防火墙端口开了 image image

lancer-wang avatar Oct 14 '22 09:10 lancer-wang

PostgreSQL Database directory appears to contain a database; Skipping initialization

2022-10-14 09:47:52.628 UTC [1] LOG: starting PostgreSQL 14.5 (Debian 14.5-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit 2022-10-14 09:47:52.631 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 2022-10-14 09:47:52.632 UTC [1] LOG: listening on IPv6 address "::", port 5432 2022-10-14 09:47:52.636 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2022-10-14 09:47:52.642 UTC [26] LOG: database system was shut down at 2022-10-14 09:47:51 UTC 2022-10-14 09:47:52.656 UTC [1] LOG: database system is ready to accept connections

lancer-wang avatar Oct 14 '22 09:10 lancer-wang

系统是Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-122-generic x86_64)

lancer-wang avatar Oct 14 '22 09:10 lancer-wang