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以获取更多信息.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- maccms后门分析
- windows10下基于docker的bvlc/caffe环境搭建与使
- WIN10桌面无创建文件夹选项,无法创建文件
- windows – 如何获取git存储库中每个修订的文件清
- windows7 、windows10环境使用pip 安装Tensorflo
- windows – WriteProcessMemory ERROR_PARTIAL_C
- active-directory – 如何使用Windows MMC从另一
- 如何在Windows中没有控制台窗口的情况下从C应用程
- windows-xp – 如何在Windows中创建文件的多个编
- .net – 了解Windows中的AppDomains
热点阅读