Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 无法在fedora上启动postgres_Postgresql_Fedora 25 - Fatal编程技术网

Postgresql 无法在fedora上启动postgres

Postgresql 无法在fedora上启动postgres,postgresql,fedora-25,Postgresql,Fedora 25,[mayur@mayuresh~]$systemctl启动postgresql Job for postgresql.service failed because the control process exited with error code. See "systemctl status postgresql.service" and "journalctl -xe" for details. [mayur@mayuresh~]$systemctl status postgresql.s

[mayur@mayuresh~]$systemctl启动postgresql

Job for postgresql.service failed because the control process exited with error code.
See "systemctl status postgresql.service" and "journalctl -xe" for details.
[mayur@mayuresh~]$systemctl status postgresql.service

● postgresql.service - PostgreSQL database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor preset: disabled)  
   Active: failed (Result: exit-code) since Sun 2017-05-21 11:43:51 IST; 46s ago  
  Process: 6984 ExecStartPre=/usr/libexec/postgresql-check-db-dir %N (code=exited, status=1/FAILURE)

May 21 11:55:48 mayuresh.localhost systemd[1]: Starting PostgreSQL database server...  
May 21 11:55:48 mayuresh.localhost systemd[1]: postgresql.service: Control process exited, code=exited status=1   
May 21 11:55:48 mayuresh.localhost systemd[1]: Failed to start PostgreSQL database server.  
May 21 11:55:48 mayuresh.localhost systemd[1]: postgresql.service: Unit entered failed state.   
May 21 11:55:48 mayuresh.localhost systemd[1]: postgresql.service: Failed with result 'exit-code'.

无法找到任何正确的解决方案。

请查看PostgreSQL server日志文件。尝试以操作系统用户的身份启动服务器
postgres
,使用
pg_ctl start
,查看您得到了什么。感谢@LaurenzAlbe,如前所述,数据初始化存在一些问题。成功了!!