PostgreSQLを起動できません。エラーは、データベースユーザーが見つからないことを指しているようです。

PostgreSQLを起動できません。エラーは、データベースユーザーが見つからないことを指しているようです。

()をpostgresql-9.6.2使用してサービスを開始するのに役立ちます。systemctlsystemd

ツールをサポートするためにPostgreSQLインスタンスをインストールする監視ツールをインストールしています。インストール中にpostgresユーザーを作成します。

インストールを進めています。ルート以外のユーザー(文書によると、ルートまたは非ルートとして実行することを選択できます)

インストールが成功しました。状態を確認しpostgresql-9.6.2て始めてください。

次のエラーメッセージが表示されます。

# systemctl status postgresql-9.6.2.service
● postgresql-9.6.2.service - SYSV: Starts and stops the PostgreSQL 9.6.2 database server
   Loaded: loaded (/etc/rc.d/init.d/postgresql-9.6.2; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2022-11-09 01:05:41 GMT; 8min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 9302 ExecStart=/etc/rc.d/init.d/postgresql-9.6.2 start (code=exited, status=1/FAILURE)

Nov 09 01:05:41 sxnda10053.delta.com systemd[1]: Starting SYSV: Starts and stops the PostgreSQL 9.6.2 database server...
Nov 09 01:05:41 10053.com postgresql-9.6.2[9302]: Starting PostgreSQL 9.6.2:
Nov 09 01:05:41 10053.com postgresql-9.6.2[9302]: su: user DB_SERVICE_USER does not exist
Nov 09 01:05:41 10053.com postgresql-9.6.2[9302]: PostgreSQL 9.6.2 did not start in a timely fashion, please see DB_INSTALL_DIR/pg_log/startup.log for details
Nov 09 01:05:41 10053.com systemd[1]: postgresql-9.6.2.service: control process exited, code=exited status=1
Nov 09 01:05:41 10053.com systemd[1]: Failed to start SYSV: Starts and stops the PostgreSQL 9.6.2 database server.
Nov 09 01:05:41 10053.com systemd[1]: Unit postgresql-9.6.2.service entered failed state.
Nov 09 01:05:41 10053.com systemd[1]: postgresql-9.6.2.service failed.
[root@10053 xdg]# systemctl start postgresql-9.6.2.service
Job for postgresql-9.6.2.service failed because the control process exited with error code. See "systemctl status postgresql-9.6.2.service" and "journalctl -xe" for details.

どんな助けでも大変感謝します。

ベストアンサー1

おすすめ記事