【发布时间】:2012-05-03 12:31:20
【问题描述】:
我正在关注最近关于设置 PostgreSQL 的 RailsCast,但我无法运行 initdb /usr/local/var/postgres 命令。每次我运行它,我都会收到这个错误:
The files belonging to this database system will be owned by user "Construct".
This user must also own the server process.
The database cluster will be initialized with locale en_US.UTF-8.
The default database encoding has accordingly been set to UTF8.
The default text search configuration will be set to "english".
creating directory /usr/local/var/postgres ... initdb: could not create directory "/usr/local/var": Permission denied
【问题讨论】:
-
您的问题解决了吗?
-
我也有同样的问题...还没有找到解决办法。
标签: database postgresql chmod chown