stop postgres processes from restarting - mac
<p>I'm trying to run my rails projects but it keeps falling because it depends on postgres to be running. When I try to start postgres it keep saying its already running (or the port is taken). I checked activity monitor and there are ~6 postgres processes running, when I try to terminate/force-quit the processes, they just appear again...</p>

<p>not sure how to get around this issue.</p>

<p>actual error when running <code>postgres -D /usr/local/var/postgres</code>:</p>

<blockquote>
  <p>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</p>
</blockquote>

<p>and when I try to stop postgres with <code>pg_ctl -D /usr/local/var/postgres stop -s -m fast</code>, I get this error: </p>

<blockquote>
  <p>pg_ctl: PID file "/usr/local/var/postgres/postmaster.pid" does not exist
  Is server running?</p>
</blockquote>