我在Windows 7 32位操作系统中安装了PostgreSQL二进制文件;我可以从命令提示符启动服务器,但我无法将其作为Windows服务运行。
当我尝试手动启动服务时,出现以下错误:
"The postgreSQL service on local computer started and then stopped. some services stop automatically if they are not in use by other servces or programs"
我需要做的就是,在启动Windows后,当我双击我的Java应用程序时,我需要顺利运行我的应用程序,没有任何数据库错误。但由于PostgreSQL没有作为Windows服务运行,我无法做到这一点。
我在Windows事件查看器中发现了以下信息:
The description for Event ID 0 from source PostgreSQL cannot be found.
Either the component that raises this event is not installed on your local computer or the installation is corrupted.
You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
postgres cannot access the server configuration file
"C:/Windows/system32/pgsql/data/postgresql.conf": No such file or directory
我搜索了一下,但是没有找到答案。