Mattermost 3.6.2 Ubuntu 16.04 pgsql 9.5 db 拨号错误问题
Mattermost 3.6.2 Ubuntu 16.04 pgsql 9.5 db dial err issue
我在尝试测试最重要的服务器时遇到问题
sudo -u mattermost ./platform
[2017/02/04 11:19:31 CET] [INFO] Loaded system translations for 'en' from '/opt/mattermost/i18n/en.json'
[2017/02/04 11:19:31 CET] [INFO] Current version is 3.6.0 (3.6.2/Tue Jan 31 21:02:59 UTC 2017/1a9891f0f5671551d28be54a99155b907480cc5c/a704f18b1b14f56588a8a57042517fc51a826658)
[2017/02/04 11:19:31 CET] [INFO] Enterprise Enabled: true
[2017/02/04 11:19:31 CET] [INFO] Current working directory is /opt/mattermost/bin
[2017/02/04 11:19:31 CET] [INFO] Loaded config file from /opt/mattermost/config/config.json
[2017/02/04 11:19:31 CET] [INFO] Server is initializing...
[2017/02/04 11:19:31 CET] [INFO] Pinging SQL master database
[2017/02/04 11:19:31 CET] [CRIT] Failed to ping DB err:dial tcp 164.132.196.160:5432: getsockopt: connection refused
我通过 'mmuser' 直接连接到 mattermost 数据库,这意味着凭据没问题
mattermost 和 db 在同一台机器上
(尽管如此,我尝试修改 hba 配置,但没有成功)
第二次重装 vps
有什么想法吗?帮助 !! :)
postgres 的 listen_address
在 /etc/postgresql/9.5/main/postgresql.conf
中配置 - 它应该是 localhost
,如果你们 运行 都在同一台主机上。
你必须在 /opt/mattermost/config/config.js
的配置中告诉 mattermost 也与本地主机上的 postgres 对话。这是文件的一个片段:
{
"SqlSettings": {
"DataSource": "postgres://mmuser:password@localhost:5432/mmdatabasename"
}
}
/etc/postgresql/9.5/main/pg_hba.conf
中的相应条目可能如下所示:
host mmdatabasename mmuser localhost md5
当您转移到生产环境时,确保 运行 最重要 而不是 作为 root!
我在尝试测试最重要的服务器时遇到问题
sudo -u mattermost ./platform
[2017/02/04 11:19:31 CET] [INFO] Loaded system translations for 'en' from '/opt/mattermost/i18n/en.json'
[2017/02/04 11:19:31 CET] [INFO] Current version is 3.6.0 (3.6.2/Tue Jan 31 21:02:59 UTC 2017/1a9891f0f5671551d28be54a99155b907480cc5c/a704f18b1b14f56588a8a57042517fc51a826658)
[2017/02/04 11:19:31 CET] [INFO] Enterprise Enabled: true
[2017/02/04 11:19:31 CET] [INFO] Current working directory is /opt/mattermost/bin
[2017/02/04 11:19:31 CET] [INFO] Loaded config file from /opt/mattermost/config/config.json
[2017/02/04 11:19:31 CET] [INFO] Server is initializing...
[2017/02/04 11:19:31 CET] [INFO] Pinging SQL master database
[2017/02/04 11:19:31 CET] [CRIT] Failed to ping DB err:dial tcp 164.132.196.160:5432: getsockopt: connection refused
我通过 'mmuser' 直接连接到 mattermost 数据库,这意味着凭据没问题
mattermost 和 db 在同一台机器上 (尽管如此,我尝试修改 hba 配置,但没有成功)
第二次重装 vps
有什么想法吗?帮助 !! :)
postgres 的 listen_address
在 /etc/postgresql/9.5/main/postgresql.conf
中配置 - 它应该是 localhost
,如果你们 运行 都在同一台主机上。
你必须在 /opt/mattermost/config/config.js
的配置中告诉 mattermost 也与本地主机上的 postgres 对话。这是文件的一个片段:
{
"SqlSettings": {
"DataSource": "postgres://mmuser:password@localhost:5432/mmdatabasename"
}
}
/etc/postgresql/9.5/main/pg_hba.conf
中的相应条目可能如下所示:
host mmdatabasename mmuser localhost md5
当您转移到生产环境时,确保 运行 最重要 而不是 作为 root!