I'm trying to run PostgreSQL on Windows Server 2008 R2 as a dependency of JFrog Artifactory. When I try to start the service, the following error occurs:
The postgresql-x64-9.5 service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."
What i have tried:
- Deleting the postmaster.pid file because it may still use this file from previous sessions.
- Deleting the old processes of "postgres" left from the latest run.
Those recommendations were taken by this post of stack overflow : click here
On the post that i writed above i have tried the answers.
Than i tried to launch the postgres windows service from command line and i got this error:
[4200] FATAL: lock file "postmaster.pid" already exists
[4200] HINT: Is another postmaster (PID 6172) running in data directory "H:/data/9.5"?
Does anyone know why this can occur?