分离Alfresco服务器和Postgresql数据库

时间:2018-09-26 13:56:58

标签: postgresql alfresco

要从露天数据库中分离数据库PostgreSQL,我以失败的方式完成了这些步骤:

1。步骤1:在Linux机器173.16.6.61中安装PostgreSQL 9.4

使用所有者露天目录创建露天数据库:

CREATE USER alfresco WITH PASSWORD 'admin';
CREATE DATABASE alfresco WITH OWNER alfresco;
GRANT ALL PRIVILEGES ON DATABASE alfresco TO alfresco;

2。步骤2:使用不带PostgreSQL的Alfresco Content Services安装程序在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

1 个答案:

答案 0 :(得分:1)

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