Tôi đang theo dõi RailsCast gần đây để thiết lập PostgreSQL, nhưng tôi không thể chạy lệnh initdb /usr/local/var/postgres
. Mỗi khi tôi chạy nó, tôi nhận được lỗi này:Đang cố gắng thiết lập Postgres trong môi trường của tôi nhưng dường như không nhận được quyền truy cập vào intidb
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
Bạn đã giải quyết vấn đề của bạn? – swasheck
Tôi có cùng một sự cố ... chưa tìm thấy giải pháp nào. – fccoelho