当前位置: 首页 » 资讯 » 电商 » 正文

Mac下启动postgrsql提示another server might be running的解决

发布日期:2023-09-30 03:14:58     浏览次数:4
核心提示:在mac中运行如下命令启动postgresql服务: pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/ start 不料一向正常的结果竟然出错了,提示: pg_

在mac中运行如下命令启动postgresql服务:

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/ start

不料一向正常的结果竟然出错了,提示:

pg_ctl: another server might be running; trying to start server anywayserver starting

实际postgresql服务并没有运行起来,重试也一样.

先看一下log:

cat /usr/local/var/postgres/

末尾有这么一句:

lock file "" already exists HINT: Is another postmaster (PID 584) running in data directory "/usr/local/var/postgres"? LOG: database system was shut down at 2017-02-13 06:54:12 CST LOG: MultiXact member wraparound protections are now enabled LOG: autovacuum launcher started LOG: database system is ready to accept connections FATAL: lock file "" already exists HINT: Is another postmaster (PID 755) running in data directory "/usr/local/var/postgres"?

进入postgresql的安装目录,删除掉那个pid文件,再次运行一切正常.

怀疑是上次强行退出postgresql造成的.

头条分类

免责声明:本站所有信息由各公司自行发布,请在交易前确认真实合法性,本站不承担任何交易及此类作品侵权行为的直接责任及连带责任!