我正在使用Mac High Sierra。我在本地安装了Postgres服务器,但我不记得如何将其设置为自动启动,并且我正尝试禁用自动启动。我以为可以使用Brew服务进行设置,但是当我尝试停止它时,仍然可以登录
localhost:mymodule davea$ brew services stop postgresql
Error: Service `postgresql` is not started.
localhost:mymodule davea$
localhost:mymodule davea$
localhost:mymodule davea$ psql -U postgres
Password for user postgres:
psql (9.6.15, server 9.5.1)
Type "help" for help.
postgres=#
我尝试了pg_ctl路由,但是无法识别该进程
localhost:mymodule davea$ pg_ctl -D /usr/local/var/postgres stop
pg_ctl: PID file "/usr/local/var/postgres/postmaster.pid" does not exist
Is server running?
如何确定Postgres如何自动启动?