server - 安装 Mattermost 服务器的问题
问题描述
每个人。
操作系统:Red Hat Enterprise Linux 7在同一台服务器上安装 mattermost v. 5.11.0 说明https://docs.mattermost.com/install/install-rhel-7.html#installing-postgresql-database postgresql V. 9.4。
文件 /opt/mattermost/config/config.json
"DriverName": "postgres",
"DataSource": "postgres://mmuser:12345678@localhost:5432/mattermost?sslmode=disable&connect_timeout=10",
文件 /var/lib/pgsql/9.4/data/pg_hba.conf
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 ident
# IPv6 local connections:
host all all ::1/128 ident
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres peer
#host replication postgres 127.0.0.1/32 ident
#host replication postgres ::1/128 ident
在mattermost 服务器的安装阶段,当您运行第8 步“测试Mattermost 服务器以确保一切正常”时。命令后: sudo -u mattermost ./bin/mattermost 得到一个错误:
[root@srv-testserver mattermost]# sudo -u mattermost ./bin/mattermost
{"level":"info","ts":1558609830.586414,"caller":"utils/i18n.go:83","msg":"Loaded system translations for 'en' from '/opt/mattermost/i18n/en.json'"}
{"level":"info","ts":1558609830.5868208,"caller":"app/server_app_adapters.go:58","msg":"Server is initializing..."}
{"level":"info","ts":1558609830.5903602,"caller":"sqlstore/supplier.go:224","msg":"Pinging SQL master database"}
{"level":"error","ts":1558609830.6013992,"caller":"sqlstore/supplier.go:236","msg":"Failed to ping DB retrying in 10 seconds err=pq: Ident authentication failed for user \"mmuser\""}
请帮助建议
解决方案
推荐阅读
- swift - SwiftUI 选择器为所选项目和选择视图分隔文本
- python - AttributeError:“SpooledTemporaryFile”对象没有属性“resize”
- php - 在 Laravel 中执行之前的 Mysql 查询拦截
- node.js - 如何在消息中发送某个(例如第二次或第三次)提及
- amazon-web-services - 无法使用密钥对进行 SSH
- unity3d - Photon kick 从游戏中手动添加玩家
- node.js - MongoDB查询以获取所有文档的数组字段长度的总和
- c# - Couchbase:为什么从 Couchbase SDK 检索时任何时区都会自动转换为本地时区
- python - 在张量流中找到两个边界框的交集?
- c++ - 使用 NTAllocateVirtualMemory 和 GetProcAddress 的内存分配问题不起作用