cht電腦資訊SQL DB
adm Find login register

Postgresql startup error

eliu

joined: 2007-08-09
posted: 11468
promoted: 617
bookmarked: 187
新竹, 台灣
1subject: Postgresql startup errorPromote 0 Bookmark 02008-02-10quote  

Postgresql 不知道為何會產生底下的 error,然後就開不起來。

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

把 chkconfig init 的 sequence 調到 99,留到最後執行就可以了。 

修改 /etc/init.d/postgresql
#! /bin/sh
# postgresql    This is the init script for starting up the PostgreSQL
#        server
#
# chkconfig: 2345 99 15

執行 

# chkconfig --del postgresql
# chkconfig --add postgresql

 

edited: 3

CC: Linux
cht電腦資訊SQL DB
adm Find login register
views:4924