postgresql - Apple MacBook Pro M1 芯片 + Postgres + Connection denied 错误
问题描述
我的 MacBook Pro M1 芯片出现以下错误
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
在 MacBook Air 中,我曾经通过从 /usr/local/var/postgres/postmaster.pid 目录中删除 postmater.pid 来解决此错误。
但无法在 MacBook Pro M1 BigSur OS 中找到这个 pid
解决方案
在 MacBook Pro M1 芯片中,您可以在以下目录中找到 postmate.pid。
/System/Volumes/Update/mnt1/opt/homebrew/var/postgres/postmaster.pid
我已将其删除并重新启动 Postgres。现在一切都在完美运行。
推荐阅读
- rdf - 如何实施shacl规则
- c++ - 如何在恒定时间内从提升图中获取顶点?
- twitter-bootstrap - 无法在 bootstrap-vue (nuxt) 中覆盖 $navbar-light-color
- python-3.x - 散景:如何通过复选框的交互式绘图更新图例?
- matplotlib - 导入 matplotlib 因 DLL 加载错误而失败,但仅在 spyder 中
- amazon-s3 - 用于记录 Sinch 调用的 Amazon S3 存储桶设置
- c# - 如何使用 Unity 监听 DynamoDB 上的更改?
- python - 使用 Django 开发仪表板?
- jenkins - 提高 SIGINT 以优雅地终止管道声明性 Jenkins 中的作业
- python - Django 管理员将数据下载为 csv