[root@hostname db]# systemctl restart postgresql-9.4 Failed to restart postgresql-9.4.service: Unit is not loaded properly: Invalid argument. See system logs and 'systemctl status postgresql-9.4.service' for details.
注:インストールのタイプ(特権または非特権)に応じて、次の手順を実行するために必要なパスとユーザは異なります。 これらの手順を実行する際には注意が必要です。また、正しいユーザがコマンドを実行していることを確認してください。
特権インストールの場合、ユーザは「root」または実行中のサービスに関連するユーザ名(postgres、pgbouncer、phantomなど)として見つけることができます。 非特権インストールの場合は、「phantom」またはSOARのインストール中に使用される別の特別に指定されたアカウントが表示されます。
systemctl status postgresql-9.4.serviceを実行しています:
[root@hostname db]# systemctl status postgresql-9.4.service ● postgresql-9.4.service Loaded: error (Reason: Invalid argument) Active: inactive (dead) Aug 01 10:27:21 fqdn systemd[1]: postgresql-9.4.service lacks both ExecStart= and ExecStop= setting. Refusing. Aug 01 10:27:21 fqdn systemd[1]: Cannot add dependency job for unit postgresql-9.4.service, ignoring: Unit is not loaded...gument. Aug 01 10:27:51 fqdn systemd[1]: postgresql-9.4.service lacks both ExecStart= and ExecStop= setting. Refusing. Aug 01 10:27:51 fqdn systemd[1]: postgresql-9.4.service lacks both ExecStart= and ExecStop= setting. Refusing. Aug 01 10:27:52 fqdn systemd[1]: postgresql-9.4.service lacks both ExecStart= and ExecStop= setting. Refusing. Aug 01 10:27:53 fqdn systemd[1]: postgresql-9.4.service lacks both ExecStart= and ExecStop= setting. Refusing. Aug 01 10:27:53 fqdn systemd[1]: postgresql-9.4.service lacks both ExecStart= and ExecStop= setting. Refusing. Aug 01 10:27:58 fqdn systemd[1]: postgresql-9.4.service lacks both ExecStart= and ExecStop= setting. Refusing. Hint: Some lines were ellipsized, use -l to show in full.
[root@hostname db]# /<phantom_home>/bin/start_phantom.sh Starting all Phantom services psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.6432"? psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.6432"? psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.6432"? psql: could not connect to server: No such file or directory
注:インストールのタイプ(特権または非特権)に応じて、次の手順を実行するために必要なパスとユーザは異なります。 これらの手順を実行する際には注意が必要です。また、正しいユーザがコマンドを実行していることを確認してください。
特権インストールの場合、ユーザは「root」または実行中のサービスに関連するユーザ名(postgres、pgbouncer、phantomなど)として見つけることができます。 非特権インストールの場合は、「phantom」またはSOARのインストール中に使用される別の特別に指定されたアカウントが表示されます。
次の手順に従って、回避策を実行します。
a. Postgresサービスを起動するには
sudo -su postgres /usr/pgsql-9.4/bin/pg_ctl start -D /opt/phantom/data/db/ -s -w -t 300
sudo -su postgres /usr/bin/pgbouncer -d -q /etc/pgbouncer/pgbouncer.ini
/<phantom_home>/bin/start_phantom.sh
| 改定 | 発行日 | コメント |
|---|---|---|
1.0 |
28-Sep-2026
|
初版 |