gpt4 book ai didi

Postgresql fatal error

转载 作者:行者123 更新时间:2023-11-29 11:24:24 25 4
gpt4 key购买 nike

我正在使用 postgresql。我错误地通过命令授予了 postgresql 文件夹的权限

chmod -R 777 /var/lib/postgresql/

现在,当我尝试连接到 postgresql 时,出现以下错误。

The PostgreSQL server failed to start. Please check the log output:
2013-09-19 07:21:48 GMT FATAL: data directory
"/var/lib/postgresql/8.4/main" has group or world access 2013-09-19
07:21:48 GMT DETAIL: Permissions should be u=rwx (0700).

尝试通过命令重启postgresql服务器

/etc/init.d/postgresql restart 

但得到同样的错误。

我该怎么办?

最佳答案

PostgreSQL 需要独占访问数据目录中的文件。这可以通过在数据目录上使用 chmod 700 或通过右键单击并在 Windows 上选择各种选项来解决,具体取决于您的操作系统。

关于Postgresql fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18888900/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com