读取文件postgresql.conf的Postgres安装错误 [英] Postgres Installation Error reading file postgresql.conf

查看:81
本文介绍了读取文件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安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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