Mac OS X 10.5.2 + Macports 1.6 + postgresQL 8.3在启动postgres之前,端口5432端口没有被占用,也无postgres进程
>postgres -D ....命令后显示:
“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:  database system was shut down at 2008-03-12 17:33:40 CST
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started
”停在这里,postgres进程有了,5432端口也被它占用了
请问如何解决?先谢过

解决方案 »

  1.   

    我在Windows上用“pg_ctl stop -D 目录”停止服务,不知道Mac是不是
    1.先扫描一下5432端口是不是真的开着,如果是,找到相关进程关闭它
    2.IPv6?你看看pg_hba.conf这个文件吧,这个文件里边有关于IP配置信息
      

  2.   

     Address already in use 
      

  3.   

    现在不都是用IPv4吗?
    能关掉pgsl的IPv6服务吗?