小编And*_*rev的帖子

无法停止服务器。PostgreSQL

我是 sql 的新用户,在 Mac 上使用本地服务器时遇到问题。首先,我想停止服务器使用

pg_ctl -D /usr/local/var/postgres stop
Run Code Online (Sandbox Code Playgroud)

但是 bash 返回这样的问题:

 waiting for server to shut
 down...............................................................
 failed 
 pg_ctl: server does not shut down
Run Code Online (Sandbox Code Playgroud)

我尝试使用

brew services restart postgresql
Run Code Online (Sandbox Code Playgroud)

之后我用

 pg_ctl -D /usr/local/var/postgres status
Run Code Online (Sandbox Code Playgroud)

bash 也返回

 pg_ctl: server is running (PID: 3036)
Run Code Online (Sandbox Code Playgroud)

我怎样才能阻止它?谢谢。

postgresql bash

2
推荐指数
1
解决办法
3167
查看次数

标签 统计

bash ×1

postgresql ×1