首页 > 解决方案 > 分离 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

标签: postgresqlalfresco

解决方案


问题是与 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

推荐阅读