postgresql - 分离 Alfresco 服务器和 postgresql 数据库
问题描述
为了将数据库 PostgreSQL 与 alfresco 分开,我执行了这些步骤但失败了:
1. step1:在Linux机器173.16.6.61安装PostgreSQL 9.4
与所有者 alfresco 创建数据库 alfresco:
CREATE USER alfresco WITH PASSWORD 'admin';
CREATE DATABASE alfresco WITH OWNER alfresco;
GRANT ALL PRIVILEGES ON DATABASE alfresco TO alfresco;
2. step2 : 使用没有 PostgreSQL 的 Alfresco Content Services Installer 在 Linux 机器 173.16.6.66 上安装。
更改 alfresco-global.propertie :
db.driver=org.postgresql.Driver
db.username=alfresco
db.password=admin
db.name=alfresco
db.url=jdbc:postgresql://173.16.6.61:5432/alfresco
db.pool.max=275
解决方案
问题是与 PostgreSQL 数据库服务器的远程连接:
更改收听地址
linux1@fe35577e9f8b:/# vim /etc/postgresql/9.4/main/postgresql.conf
并改变:
listen_addresses = '*' # it accepts connection from any IP;
要通过密码验证允许来自任何地址的连接:
linux1@fe35577e9f8b:/# vim /etc/postgresql/9.4/main/pg_hba.conf
在 pg_hba.conf 的末尾添加这一行
host all all 0.0.0.0/0 md5
推荐阅读
- ms-access - MS-Access Pro Plus 2016“无法使用”
'; 文件已在使用”Win 10 Pro 64 位 v1909 - javascript - 无法正确使用语义标签
- c# - Visual Studio 解决方案中嵌入式数据库的 SQL 连接字符串
- javascript - 模拟 javascript ES6 构造函数的可接受方式?
- google-play-console - 错误状态:在 Google Play 控制台中创建订阅时出现无人认领的错误
- c# - 将 HTTP 流量从一台 PC 重定向到另一台 PC 的任何方式
- database - Docker 容器上的 Oracle 12c 数据库,状态:不健康
- java - 如何使用 Spring Boot / javax.net.ssl.SSLHandshakeException 使用自定义证书制作 HTTP GET:收到致命警报:handshake_failure
- pip - Spacy - 缩小图书馆规模
- debugging - Flutter - VS Code 调试控制台垃圾邮件 - 缺少红色错误消息