首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >PostgreSQL服务器不会停止

PostgreSQL服务器不会停止
EN

Stack Overflow用户
提问于 2013-07-30 01:15:48
回答 8查看 86.4K关注 0票数 95

在MacOSX10.8.4上使用PostgreSQL有一点问题。我不小心在postgres服务器运行的时候做了brew rm postgresql --force。当我使用brew install postgresql安装并运行pg_ctl -D /usr/local/var/postgres start时,我得到:

代码语言:javascript
运行
复制
pg_ctl: another server might be running; trying to start server anyway
server starting
FATAL:  lock file "postmaster.pid" already exists                                                                       
HINT:  Is another postmaster (PID 752) running in data directory "/usr/local/var/postgres"?

当我运行"ps -ef | grep postgres“时,我得到:

代码语言:javascript
运行
复制
501   752   235   0 12:42PM ??         0:00.01 /usr/local/opt/postgresql/bin/postgres -D /usr/local/var/postgres -r /usr/local/var/postgres/server.log
501   754   752   0 12:42PM ??         0:00.00 postgres: checkpointer process       
501   755   752   0 12:42PM ??         0:00.34 postgres: writer process       
501   756   752   0 12:42PM ??         0:00.02 postgres: wal writer process       
501   757   752   0 12:42PM ??         0:00.01 postgres: autovacuum launcher process       
501   758   752   0 12:42PM ??         0:00.01 postgres: stats collector process       
501   945   452   0 12:58PM ttys000    0:00.00 grep postgres

当我尝试使用pg_ctl stop -D /usr/local/var/postgres -m fastpg_ctl -D /usr/local/var/postgres stop -mi停止服务器时,我得到:

代码语言:javascript
运行
复制
waiting for server to shut down........................................... Failed
pg_ctl: server does not shut down

编辑

代码语言:javascript
运行
复制
which pg_ctl
/usr/local/bin/pg_ctl
pg_ctl --version
pg_ctl (PostgreSQL) 9.2.4

server.log的要点:https://gist.github.com/anonymous/6106182

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17930167

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档