我无法在Ubuntu22中启动PostgreSQL。我得到的是,
root@NOC:/var/log/postgresql# systemctl status postgresql â— postgresql.service - PostgreSQL RDBMS Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled) Active: active (exited) since Tue 2023-01-03 22:51:08 PKT; 3min 56s ago Main PID: 20422 (code=exited, status=0/SUCCESS) CPU: 5ms جنÙری 03 22:51:08 NOC systemd[1]: Starting PostgreSQL RDBMS... جنÙری 03 22:51:08 NOC systemd[1]: Finished PostgreSQL RDBMS.
然而,日志文件如下所示。有人请你指点。
2023-01-03 22:02:05.015 PKT [5770] LOG: starting PostgreSQL 14.5 (Ubuntu 14.5-0ubuntu0.22.04.1) on x86_64-pc-linux-gnu, co> 2023-01-03 22:02:05.015 PKT [5770] LOG: listening on IPv4 address "127.0.0.1", port 5432 2023-01-03 22:02:05.131 PKT [5770] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2023-01-03 22:02:05.636 PKT [5771] LOG: database system was shut down at 2023-01-03 22:01:45 PKT 2023-01-03 22:02:05.689 PKT [5770] LOG: database system is ready to accept connections 2023-01-03 22:11:14.737 PKT [5770] LOG: received fast shutdown request 2023-01-03 22:11:16.010 PKT [5770] LOG: aborting any active transactions 2023-01-03 22:11:16.018 PKT [5770] LOG: background worker "logical replication launcher" (PID 5777) exited with exit code 1 2023-01-03 22:11:16.019 PKT [5772] LOG: shutting down 2023-01-03 22:11:16.553 PKT [5770] LOG: database system is shut down 2023-01-03 22:11:29.193 PKT [6553] LOG: starting PostgreSQL 14.5 (Ubuntu 14.5-0ubuntu0.22.04.1) on x86_64-pc-linux-gnu, co> 2023-01-03 22:11:29.194 PKT [6553] LOG: listening on IPv4 address "127.0.0.1", port 5432 2023-01-03 22:11:29.276 PKT [6553] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2023-01-03 22:11:29.555 PKT [6554] LOG: database system was shut down at 2023-01-03 22:11:16 PKT