Mac下启动postgrsql提示another server might be running的解决
2017-02-13 13:50
726 查看
在mac中运行如下命令启动postgresql服务:
不料一向正常的结果竟然出错了,提示:
实际postgresql服务并没有运行起来,重试也一样.
先看一下log:
末尾有这么一句:
进入postgresql的安装目录,删除掉那个pid文件,再次运行一切正常.
怀疑是上次强行退出postgresql造成的.
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 server starting
实际postgresql服务并没有运行起来,重试也一样.
先看一下log:
cat /usr/local/var/postgres/server.log
末尾有这么一句:
lock file "postmaster.pid" 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 "postmaster.pid" already exists HINT: Is another postmaster (PID 755) running in data directory "/usr/local/var/postgres"?
进入postgresql的安装目录,删除掉那个pid文件,再次运行一切正常.
怀疑是上次强行退出postgresql造成的.
相关文章推荐
- Mac下启动postgrsql提示another server might be running的解决
- Mac上csv导入mysql提示错误[Error Code] 1290 - The MySQL server is running with the --secure-file-priv option解决办法
- Git 使用中显示“Another git process seems to be running in this repository...”的提示问题解决办法
- 解决启动MySql提示:MySQL server PID file could not be found!
- sqlserver提示“在流水模式下,事务无法启动”的解决办法
- sqlserver提示“在流水模式下,事务无法启动”的解决办法
- sqlserver提示“在流水模式下,事务无法启动”的解决办法 .
- MS SQL Server 无法启动故障解决
- eclipse提示The Maven Integration requires that Eclipse be running in a JDK解决方法:
- SQL SERVER Mainenance Plans 无法启动的原因,以及如何解决
- Visual Studio 2012创建SQL Server Database Project提示失败解决方法
- SQLserverAgent无法启动的解决方法
- Android导入的项目再次启动eclipse时提示The import android cannot be resolved的解决办法
- AWE设置导致SQL Server Agent服务无法启动的解决方法
- 使用sql server management studio 2008 无法查看数据库,提示 无法为该请求检索数据 错误916解决方法
- linux无法启动mySQL解决办法,MySQL is running but PID file could not be found
- 启动varnish提示SHMFILE owned by running varnishd master解决办法
- Aptana Studio 3启动时提示 Workspace Cannot Be Created 解决办法
- android studio 启动提示Plugin com.intellij failed to initialize and will be disabled: null的解决方法
- SQL服务器上SQLserverAgent无法启动的解决方法 & SQL2000无法安装的解决办法