安装Mattermost服务器的问题

时间:2019-05-23 11:20:07

标签: server installation mattermost

所有人。

OS:Red Hat Enterprise Linux 7 安装物质最基本5.1.1.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

在最重要的服务器的安装阶段,运行步骤8“测试Mattermost服务器以确保一切正常”。命令后:sudo -u whatmost ./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\""}

请提供帮助建议

0 个答案:

没有答案