mac os x 狮子 10.7.4
psql --version -> psql (PostgreSQL) 9.0.5
我想安装最新版本并用它运行我的 rails 应用程序。
我愿意
brew install postgresql
it is installed here: /usr/local/Cellar/postgresql/9.1.4
initdb /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
我得到:
pg_ctl: another server might be running; trying to start server anyway
运行 postgres --version
-> 9.1.4
postgres -p 5433
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.