【发布时间】:2013-09-01 01:57:08
【问题描述】:
在使用 postgres 和 mac 10.8 调查所有这些问题后需要帮助
我通过自制软件安装了 pg(也尝试了 heroku 应用,但没有运气)
which psql --> /usr/local/bin/psql
psql --version --> psql (PostgreSQL) 9.2.4
启动 Rails 服务器时,我得到 Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
当我执行pg_ctl -D /usr/local/var/postgres -l logfile start 时,我得到server starting
当我运行psql 时,我得到Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
有什么想法吗?
【问题讨论】:
-
您能检查
/usr/local/var/postgres/server.log或/usr/local/var/postgres/*.log是否有错误吗? -
你能检查服务是否正在运行吗?
ps aux | grep postgres在 Linux 中 -
which postgres返回什么,然后ls -l PATH_TO_POSTGRES显示什么 - 它可能仍然指向 mac 10.8 附带的出厂安装的 postgres 版本 -
@jallen7usa
/usr/local/var/postgres/server.log不存在,因为/usr/local/var/postgres/不存在。 @Vimsha 看起来好像在运行,因为我收到了username 16523 0,0 0,0 2432768 460 s000 R+ 9:28 0:00.00 grep postgres
标签: ruby-on-rails postgresql osx-mountain-lion