[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、pgbouncher、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、pgbouncher、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
|
初始版本 |