postgresql - 如何修复:系统尚未在 Docker(Centos 7)中使用 systemd 作为 init 系统启动
问题描述
我尝试使用 Centos 7 创建一个 Docker Postgres 容器,但是当我运行时:
/usr/pgsql-13/bin/postgresql-13-setup initdb
我得到错误:
系统尚未使用 systemd 作为 init 系统启动 无法连接到总线 无法在 postgresql-13.service 中找到 PGDATA 设置
谢谢你的任何建议
解决方案
推荐阅读
- opentbs - 生成的 Excel 文件在打开时没有调整行高
- python - 如何在单独的文件中写入数组?
- python - 来自点列表(不同长度)而不是图像的 findHomography 匹配器
- ios - Firebase 身份验证不插入新值
- android - 如何有效地在 android 应用程序中实现 firebase 分析?
- c# - 为什么在实例化预制件以复制它时,它会复制数量的两倍,而一些位置和旋转错误?
- excel - 如何计算回报和暨。返回二维数组
- azure-eventhub - Azure 事件中心消费者组
- sql-server - 解析 XML 节点 Key:Value
- python - 访问大型 2D numpy 数组中的多个索引