可以在Manjaro上启动Postgresql 21.2.5
我无法在 VirtualBox 内运行的 Manjaro 21.2.5 上启动 PostgreSQL 13.6。 如何让 PostgreSQL 与 Manjaro 一起工作? 我使用 Manjaro 包管理器下载了 PostgreSQL。 谢谢你!
~ psql ✔
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/run/postgresql/.s.PGSQL.5432"?
~ postgres 2 ✘
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
~ 2 ✘
~ sudo systemctl status postgresql INT ✘
[sudo] password for jon:
○ postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vend>
Active: inactive (dead)
~ sudo systemctl start postgresql 3 ✘ 25s
Job for postgresql.service failed because the control process exited with error code.
See "systemctl status postgresql.service" and "journalctl -xeu postgresql.service" for details.
I cannot start PostgreSQL 13.6 on Manjaro 21.2.5 running inside VirtualBox.
How to get PostgreSQL to work with Manjaro?
I downloaded PostgreSQL using the Manjaro package manager.
Thank you!
~ psql ✔
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/run/postgresql/.s.PGSQL.5432"?
~ postgres 2 ✘
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
~ 2 ✘
~ sudo systemctl status postgresql INT ✘
[sudo] password for jon:
○ postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vend>
Active: inactive (dead)
~ sudo systemctl start postgresql 3 ✘ 25s
Job for postgresql.service failed because the control process exited with error code.
See "systemctl status postgresql.service" and "journalctl -xeu postgresql.service" for details.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否初始化了数据库?
您可能还需要在运行
psql
通过SytemCtl
之前启动服务:如果您还没有:Have you initialized the database?
You might also need to start the service before running
psql
throughsystemctl
if you haven't already: