读取文件postgresql.conf的Postgres安装错误

编程入门 行业动态 更新时间:2024-10-27 13:28:06
本文介绍了读取文件postgresql.conf的Postgres安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有 Windows Server 2003 机器,尝试在其上安装 Postgres 9.2 。在安装结束时,它会弹出警告

I have Windows Server 2003 machine on which I tried to install Postgres 9.2. At the end of the installation it pops a warning saying

安装后运行问题。安装可能无法正确完成。读取文件C:\Program Files\PostgreSQL\9.2\data\postgresql.conf

Problem running post-install step. Installation may not complete correctly. Error reading file C:\Program Files\PostgreSQL\9.2\data\postgresql.conf

我检查了 C:\Program Files\PostgreSQL\9.2\data 中的文件 postgresql.conf ,发现它不存在。

I checked for the file postgresql.conf in C:\Program Files\PostgreSQL\9.2\data and found that it does not exist.

我还发现,除了 pg_log 文件夹之外,data文件夹下没有太多内容

I also found that there is not much under the data folder except for pg_log folder which is also empty.

对我可能做错的任何想法吗?

Any ideas on what I may be doing wrong?

推荐答案

我建议您尝试以下操作,它对我有用:

I recommend you to try following, it worked for me:

确保登录到服务器的用户对postgres文件夹具有完全控制权限

Make sure that the user that is logged in to the server has full control permissions for the postgres folder and it's sub-folders.

运行:

initdb -D <your new data folder>

然后:

pg_ctl -D <your new data folder> -l logfile start

如果问题仍然存在,并且在程序文件下安装了postgres,或者安装路径包含空格字符,请尝试对pg_ctl的数据文件夹参数使用相对路径。例如: .. \data

If the problem continues, and postgres is installed under "Program Files", or the installation path contains a space character, try using a relative path for the data folder argument of pg_ctl. Such as: "..\data"

更多推荐

读取文件postgresql.conf的Postgres安装错误

本文发布于:2023-10-15 11:53:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1494262.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   文件   conf   postgresql   Postgres

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!