我在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有些冲突。有人知道发生了什么吗?
提前致谢!
答案 0 :(得分:6)
似乎另一个进程正在侦听端口5432.尝试运行以下命令:
sudo netstat -tulpn | grep 5432