[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等)。 對於非特權安裝,您可能會看到「幻像」或其他在安裝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等)。 對於非特權安裝,您可能會看到「幻像」或其他在安裝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
|
初始版本 |