我希望将postgres的数据目录更改为/home/postgres/data编辑th postgresql.service,而不是更改文件/etc/postgresql/10/main/postgresql.conf所以,我用并增加了以下几行:Environment=PGDATA=/home/postgres/data并使用sudo service
我试图将它与LibreTime一起使用,但由于某种原因,它无法启动postgresql。systemctl启动postgresql.service的PostgreSQL作业失败,因为控制进程退出并带有错误代码。有关详细信息,请参阅"systemctl status postgresql.service“和"journalctl -xe”。systemd[1]: postgresql.service failed.-编辑-这是完整的代码,哎呀:
systemctl st
prompt.Need中出来做ctrl+c从提示输出出来,这没有显示出预期的结果( Active: active (start)而非active:active(运行)),但是postgresql服务正在启动# systemctl status postgresql.service Loaded: loaded(/etc/systemd/system/postgresql.service</
服务已经启动(postmaster.pid文件位于/var/lib/pgsql/10/data下),但我需要在pg_hba.conf更改后重新加载配置或重新启动服务器。dataRedirecting to /bin/systemctl reload postgresql.serviceFailed to reload postgresql.ser