本地计算机上的postgresql-x64-9.6服务已启动,然后停止。如果不使用某些服务,它们会自动停止 [英] The postgresql-x64-9.6 service on local computer started and then stopped. Some services stop automatically if they are not in use

查看:645
本文介绍了本地计算机上的postgresql-x64-9.6服务已启动,然后停止。如果不使用某些服务,它们会自动停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Postgresql服务未在services.msc中启动。在Windows Server 2008 R2中启动PostgreSQL服务时,它显示在下面的消息中。

Postgresql service not starting in services.msc. it is showing below message while starting PostgreSQL service in Window server 2008 R2.

本地计算机上的postgresql-x64-9.6服务已启动,然后停止。某些服务会自动停止如果其他服务或程序未使用它们。

" The postgresql-x64-9.6 service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."

推荐答案

我遇到了同样的问题。我听了@Craig Ringer的建议。当我检查事件查看器时出现此错误。 2018-06-18 12:34:11.222 GMT [4200]致命:锁定文件 postmaster.pid已存在
2018-06- 18 12:34:11.222 GMT [4200]提示:数据目录 C:/ Program Files / PostgreSQL / 10 / data中是否正在运行另一个邮局主管(PID 6172)?
所以我删除了邮局主管我的postgreSQL数据目录中的 .pid文件,再次启动该服务,这次,该服务正常启动。
此错误可能是由于postgreSQL服务的不完全关闭所致。

I had this same issue. and i followed @Craig Ringer's advice. when i check the event viewer i got this error.2018-06-18 12:34:11.222 GMT [4200] FATAL: lock file "postmaster.pid" already exists 2018-06-18 12:34:11.222 GMT [4200] HINT: Is another postmaster (PID 6172) running in data directory "C:/Program Files/PostgreSQL/10/data"? so i deleted the "postmaster.pid" file in my postgreSQL data directory, start the service again and this time around, the service started properly. This error might be due to incomplete shutdown of the postgreSQL service.

这篇关于本地计算机上的postgresql-x64-9.6服务已启动,然后停止。如果不使用某些服务,它们会自动停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆