我已经通过 pacman 安装了 postgresql。现在我正在尝试运行它:
$ sudo systemctl start postgresql
Job for postgresql.service failed because the control process exited with error code.
See "systemctl status postgresql.service" and "journalctl -xe" for details.
Run Code Online (Sandbox Code Playgroud)
进而:
$ sudo systemctl status postgresql
? postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2016-07-10 15:30:47 UTC; 17s ago
Process: 19468 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}/data (code=exited, status=1/FAILURE)
Jul 10 15:30:47 my_comp systemd[1]: Starting PostgreSQL database server...
Jul 10 15:30:47 my_comp systemd[1]: …Run Code Online (Sandbox Code Playgroud) 当我什至不要求它时,这很有趣但大胆。例如,当我在 Chrome 下载中按打开文件夹或在 Sublime Text 中选择浏览包时。在 Chrome 中打开文件夹的文件可能不是音乐文件。
我该如何解决?