簡體   English   中英

無法啟動 PostgreSQL 服務器

[英]Could not start PostgreSQL server

我下載了 postgres 應用程序,當我在端口 5432 上創建新服務器時嘗試啟動它時出現錯誤:

pg_ctl: could not start server
Examine the log output.

然后我在它下面有Open Server Log按鈕,當我點擊它時,我得到:

2022-09-25 17:29:33.872 CEST [1054] LOG:  database system is shut down
2022-09-25 17:30:44.244 CEST [1068] LOG:  starting PostgreSQL 14.5 on aarch64-apple-darwin20.6.0, compiled by Apple clang version 12.0.5 (clang-1205.0.22.9), 64-bit
2022-09-25 17:30:44.245 CEST [1068] LOG:  listening on IPv6 address "::1", port 5432
2022-09-25 17:30:44.245 CEST [1068] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2022-09-25 17:30:44.246 CEST [1068] FATAL:  could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
2022-09-25 17:30:44.246 CEST [1068] LOG:  database system is shut down

/tmp上的權限搞砸了。 他們應該這樣每個人都可以在那里創建文件:

$ ls -ld /tmp
drwxrwxrwt 24 root root 620 Sep 26 07:26 /tmp

我會重新安裝操作系統並重新開始。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM