繁体   English   中英

无法启动 postgresql 服务器

[英]Unable to start postgresql server

我无法启动我的 etc/hosts 文件。

Starting PostgreSQL 14 database server: main
Error: /usr/lib/postgresql/14/bin/pg_ctl /usr/lib/postgresql/14/bin/pg_ctl start -D /var/lib/postgresql/14/main -l /var/log/postgresql/postgresql-14-main.log -s -o -c config_file="/etc/postgresql/14/main/postgresql.conf" exited with status 1
2021-11-29 12:33:13.333 UTC [17764] LOG: starting PostgreSQL 14.1 (Debian 14.1-1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 11.2.0-10) 11.2.0, 64-bit
2021-11-29 12:33:13.334 UTC [17764] LOG: could not create IPv6 socket for address "::1": Permission denied
2021-11-29 12:33:13.334 UTC [17764] LOG: could not create IPv4 socket for address "127.0.0.1": Permission denied
2021-11-29 12:33:13.334 UTC [17764] WARNING: could not create listen socket for "localhost"
2021-11-29 12:33:13.334 UTC [17764] FATAL: could not create any TCP/IP sockets
2021-11-29 12:33:13.336 UTC [17764] LOG: database system is shut down
pg_ctl: could not start server Examine the log output. ... failed!
failed! 

如果有人发现自己处于这种情况,请创建它。 我将 postgres 添加到 init 组

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM