我在整个崩溃过程中多次通过brew卸载并重新安装了postgresql。
我正在尝试过渡到使用postgresql.app ...但每当我尝试启动程序时,我收到一条错误消息,它告诉我检查日志。
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
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
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
此时我不知道该怎么做......我试图删除任何与postgresql远程相似的内容。任何建议都将不胜感激。
答案 0 :(得分:0)
您可以尝试在localhost:5432
sudo netstat -tpln | grep 5432
您将获得PID。根据它的不同,你可能需要杀死它并重新启动你的Postgres或识别5432上运行的程序以阻止它自动运行或删除它。