ruby-on-rails - 无法启动 postgresql 服务器 [无法绑定 IPv4 套接字:权限被拒绝]
问题描述
我正在尝试通过 Ubuntu 控制台在我的本地 Windows 机器上启动我的 PostgreSQL 9.4 数据库服务器。我正在运行命令sudo service postgresql start
,但收到以下错误输出:
The PostgreSQL server failed to start. Please check the log output:
2020-02-25 09:57:30.216 CST [497] LOG: could not bind IPv4 socket: Permission denied
2020-02-25 09:57:30.216 CST [497] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2020-02-25 09:57:30.217 CST [497] WARNING: could not create listen socket for "localhost"
2020-02-25 09:57:30.217 CST [497] FATAL: could not create any TCP/IP sockets [fail]
如何检查另一个 postmaster 是否已经在端口 5432 上运行?如果有,我将如何阻止它?谢谢!
解决方案
推荐阅读
- javascript - 单击父组件上的按钮时如何将数据从子组件传递到父组件
- python - 对使用 python Decimal 包的金融应用程序中的浮点精度损失感到困惑
- python - 在两个数组中查找重复值,Python
- java - 从 GitLab-CI 中的 docker 容器中提取测试覆盖率
- datastage - 在指定时间中止 Datastage 作业
- google-cloud-platform - 我被授予存储权限的服务帐户没有 storage.objects.list 访问 Google Cloud Storage 存储桶的权限
- swift - 如何使用 SwiftUI 中的按钮从数组中删除项目?
- javascript - 当表单发送的值与下拉列表中出现的值不同时,获取选择下拉列表的值
- python-3.x - json到python中规范请求的url编码
- jekyll - GitHub 页面中的 Rouge 语法高亮显示