我在Lion上使用brew 软件安装了PostgreSQL.它启动正常,但不会关机.我试过:

$ #started with
$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
$ #tried stoping with
$ pg_ctl -D /usr/local/var/postgres stop -m immediate
waiting for server to shut down................................... failed
pg_ctl: server does not shut down

我通过删除Launch Agent解决了这个问题:

launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
rm ~/Library/LaunchAgents/org.postgresql.postgres.plist

推荐答案

launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
rm ~/Library/LaunchAgents/org.postgresql.postgres.plist

Postgresql相关问答推荐

Postgres SQL执行加入

PostgreSQL:`row_alias为null`且`row_alias不是null`返回值不一致

到第二天的Postgres计时器

用于JSON数组的带有组合条件的Postgres JSONB Select 查询

正在应用序列化迁移,但数据库没有更改

列索引8上的扫描错误,名称已复制:不支持扫描,正在存储驱动程序.值类型[]uint8到类型*[]*bool

Jsonb[]字段中的PostgreSQL否定&q;-0.0

GORM Golang SQL查询执行不区分大小写的搜索不起作用

Postgres 对 WHERE 子句并行使用两个索引

执行准备好的语句不返回数据

在 Postgresql 中实现自定义运算符时出错

PL/pgSQL 中 PL/SQL %ISOPEN 的类似功能是什么?

Spring:如何在 PostgreSQL 中使用 KeyHolder

在执行 postgresql 函数时提交事务

在 postgreSQL 中更改序列名称

避免 created_at 和 updated_at 由 sequelize 自动生成

Python PostgreSQL 模块.哪个最好?

在 Postgresql 中按窗口函数结果过滤

Ecto Postgres 安装错误密码验证失败

Ruby 中 DateTime 的毫秒分辨率