如何在具有mysql的机器上安装(并运行)postgresql?

时间:2012-04-24 16:48:48

标签: mysql postgresql

我在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有些冲突。有人知道发生了什么吗?

提前致谢!

1 个答案:

答案 0 :(得分:6)

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

 sudo netstat -tulpn | grep 5432