加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Error1053尝试在Windows上启动postgres作为服务

发布时间:2020-12-14 00:21:03 所属栏目:Windows 来源:网络整理
导读:我在 windows7上安装了postgres并尝试通过控制面板启动服务.它产生错误1053. 当我尝试从命令行运行postgres.exe时,我收到以下消息: C:Program Files (x86)PostgreSQL9.0binpostgres.exe2011-07-24 14:02:29 IST LOG: could not create file "postmaster
我在 windows7上安装了postgres并尝试通过控制面板启动服务.它产生错误1053.

当我尝试从命令行运行postgres.exe时,我收到以下消息:

C:Program Files (x86)PostgreSQL9.0bin>postgres.exe
2011-07-24 14:02:29 IST LOG:  could not create file "postmaster.opts": Permission denied

默认数据目录是

C:Program Files (x86)PostgreSQL9.0data

我已将PGDATA env变量设置为上述目录.

另外,我编辑了该目录中的pg_hba.conf文件以添加新行,如下所示:

local   all postgres    ident  sameuser

我尝试在Windows防火墙中允许使用postgresql服务器(私有和公共网络都打勾)启动服务,当这不能解决问题时,关闭公共和专用网络的防火墙.

仍然无法启动服务.我试过禁用AVG驻留屏蔽.这些都没有奏效.

知道该怎么办?

更新:

我试过这个:

C:Program Files (x86)PostgreSQL9.0bin>pg_ctl restart
pg_ctl: PID file "C:/Program Files (x86)/PostgreSQL/9.0/data/postmaster.pid" does not exist
Is server running?
starting server anyway
server starting

C:Program Files (x86)PostgreSQL9.0bin>2011-07-24 16:12:57 IST LOG:  could not create file "postmaster.opts":

仍然没有运气.

至于日志,我在文件夹data / pg_log中找到了2个txt文件.它们在安装后立即包含事件日志,而不是我以后尝试启动postgres.我把它放到了here.

在Windows事件查看器中,我得到一系列错误事件条目,如http://pastebin.com/K6jUPPAy.所有这些条目都包含类似于以下内容的消息:

2011-07-24 12:46:44 IST FATAL:  could not access status of transaction
0 2011-07-24 12:46:44 IST DETAIL:  Could not open file
"pg_notify/0000": Permission denied.

如果还有其他日志,请告诉我在哪里可以找到它们.

这只是一个猜测,但也许PostgreSQL目录设置为只读.阅读 this post以获取更多信息.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读