我按照 digital Ocean how-to-install-postgresql-on-ubuntu-20-04-quickstart 的说明安装了它:
% sudo apt install postgresql postgresql-contrib
krb_server_keyfile = /etc/krb5.keytab
我还在 psql 中做了一个“全部显示”,除了我在 postgresql.conf 中配置的之外,没有看到任何暗示它的东西
这些是我在日志中看到的错误:
2021-05-07 21:58:49.990 UTC [1434] postgres@postgres LOG: accepting GSS security context failed
2021-05-07 21:58:49.990 UTC [1434] postgres@postgres DETAIL: Unspecified GSS failure. Minor code may provide more information: Key table entry not found
2021-05-07 21:58:49.990 UTC [1434] postgres@postgres FATAL: GSSAPI authentication failed for user "postgres"
2021-05-07 21:58:49.990 UTC [1434] postgres@postgres DETAIL: Connection matched pg_hba.conf line 114: "host postgres postgres 172.31.93.176/24 gs\
s include_realm=0"
2021-05-07 21:58:49.993 UTC [1435] postgres@postgres LOG: accepting GSS security context failed
2021-05-07 21:58:49.993 UTC [1435] postgres@postgres DETAIL: Unspecified GSS failure. Minor code may provide more information: Key table entry not found
2021-05-07 21:58:49.993 UTC [1435] postgres@postgres FATAL: GSSAPI authentication failed for user "postgres"
2021-05-07 21:58:49.993 UTC [1435] postgres@postgres DETAIL: Connection matched pg_hba.conf line 114: "host postgres postgres 172.31.93.176/24 gs\
s include_realm=0"