database - Postmaster.pid already exists, says PID number is running in directory but no process? -


i'm trying run postgresql 9.6.2 db new project.

when type in

postgres -d /usr/local/var/postgres 

i following error message:

fatal:  lock file "postmaster.pid" exists hint:  postmaster (pid 49425) running in data directory "/usr/local/var/postgres"? 

when list of processes folder, appears:

49425 /usr/local/var/postgres 1491484894 5432 /tmp localhost 

then when try

kill 49425 

it still remains in list

and when enter

pd 

the 49425 pid number isn't on list.

what going wrong here?

it says there's file /usr/local/var/postgres/postmaster.pid, won't start.

instead of starting postgres postgres -d /usr/local/var/postgres better try pg_ctl -d /usr/local/var/postgres start


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -