简体   繁体   English

PostgreSQL安装问题

[英]Issue with PostgreSQL installation

I have started learning RoR, now i am trying to install PostgreSQL for performing backend operation with the database. 我已经开始学习RoR,现在我正尝试安装PostgreSQL以对数据库执行后端操作。

I have two machines where i installed Postgresql, it runs well in one machine. 我有两台安装Postgresql的机器,它在一台机器上运行良好。 In another machine i uninstalled the PostgreSQL and re installed it. 在另一台计算机上,我卸载了PostgreSQL,然后重新安装了它。 After re installing i could not able to start the PostgreSQL service. 重新安装后,我无法启动PostgreSQL服务。

Below is the error log that i see in PostgreSQL log file 以下是我在PostgreSQL日志文件中看到的错误日志


2011-12-02 04:40:53 PST LOG:  incomplete startup packet
2011-12-02 04:40:53 PST LOG:  database system was not properly shut down; automatic recovery in progress
2011-12-02 04:40:54 PST LOG:  consistent recovery state reached at 0/15F44E0
2011-12-02 04:40:54 PST LOG:  record with zero length at 0/15F44E0
2011-12-02 04:40:54 PST LOG:  redo is not required
2011-12-02 04:40:54 PST LOG:  database system is ready to accept connections
2011-12-02 04:40:54 PST LOG:  autovacuum launcher started
2011-12-02 04:40:54 PST LOG:  could not receive data from client: An operation was attempted on something that is not a socket.

I have been trying several ways to solve this, but no use on all the steps. 我一直在尝试几种方法来解决这个问题,但是在所有步骤中都没有用。 Could any one please give me a hand on this? 有人可以帮我吗?

I am installing PostgreSQL Version 9.0.5 in Windows 7 machine (64 bit) 我正在Windows 7计算机(64位)上安装PostgreSQL 9.0.5版

Am I correct in saying that you once had a working installation of Postgres on the same machine? 我是不是说您曾经在同一台计算机上安装过Postgres吗? But you uninstalled it and are now trying to install it on the same machine again? 但是您卸载了它,现在又尝试再次将其安装在同一台计算机上吗?

I was in a similar situation once but it had to do with the service account the installer creates. 我曾经遇到过类似的情况,但这与安装程序创建的服务帐户有关。 Did you create a new service account for postgres, or are you trying to re-use the old one? 您是否为postgres创建了一个新的服务帐户,还是试图重用旧的帐户? If so, are you sure you are using the right password for the account? 如果是这样,您确定您使用的帐户密码正确吗?

Another hunch I got; 我有另一种预感 the port on which the new Postgres server is listening, is it really free? 新Postgres服务器监听的端口,它真的免费吗? It appears to me that it cannot open the listening port specified in postgresql.conf. 在我看来,它无法打开postgresql.conf中指定的侦听端口。

Or, yet another hunch; 或者,另一种预感; if I read the log correct I get the feeling that you are re-using the old data directory. 如果我没看错日志,就会感觉到您正在重新使用旧的数据目录。 Is this true? 这是真的? And if so, what was the version of the previous Postgres installation? 如果是这样,以前的Postgres安装是什么版本?

Sorry I don't have answer, but I do have questions that might lead you to a solution. 抱歉,我没有答案,但是我有疑问,可能会导致您寻求解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM