2

我在 postgresql 网站上获得了包 postgresql-8.4.9.tar.bz2 并按照文件 INSTALL 上的说明安装了它。但是当我们尝试运行它时,它不起作用并抛出这个错误:

/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data
LOG:  could not bind IPv6 socket: Address already in use
HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
LOG:  could not bind IPv4 socket: Address already in use
HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
WARNING:  could not create listen socket for "localhost"
FATAL:  could not create any TCP/IP sockets

不知道,可能是因为和mysql有些冲突。有人知道发生了什么吗?

提前致谢!

4

1 回答 1

6

似乎另一个进程正在侦听端口 5432。尝试运行以下命令:

 sudo netstat -tulpn | grep 5432
于 2012-04-24T16:56:11.207 回答