homer安装部署2021-03-24

1、安装pgsql
yum install -y postgresql12-server
/usr/pgsql-12/bin/postgresql-12-setup initdb
systemctl enable postgresql-12
systemctl start postgresql-12
2、修改pgsql的密码
sudo -u postgres psql
ALTER USER postgres WITH PASSWORD ‘postgres’;

homer-app -create-config-db -database-root-user=postgres -database-host=172.16.247.201 -database-root-password=postgres -database-homer-user=postgres

在这里插入图片描述
homer-app -create-data-db -database-root-user=postgres -database-host=172.16.247.201 -database-root-password=postgres -database-homer-user=postgres
在这里插入图片描述
修改homer数据库连接
vim /usr/local/homer/etc/webapp_config.json
在这里插入图片描述
创建表单
homer-app -create-table-db-config
homer-app -populate-table-db-config
homer-app -upgrade-table-db-config

systemctl start heplify-server
systemctl start homer-app

配置参考:

“database_config”: {
“help”: “Settings for PGSQL Database (settings)”,
“host”: “172.16.66.34”,
“keepalive”: true,
“name”: “homer_config”,
“node”: “LocalConfig”,
“pass”: “postgres”,
“user”: “postgres”
},
“database_data”: {
“localnode”: {
“help”: “Settings for PGSQL Database (data)”,
“host”: “172.16.66.52”,
“keepalive”: true,
“name”: “homer_data”,
“node”: “LocalNode”,
“pass”: “postgres”,
“user”: “postgres”
},
“RemoteNode-1”: {
“help”: “Settings for PGSQL Database (data)”,
“node”: “RemoteNode-1”,
“user”: “postgres”,
“pass”: “postgres”,
“name”: “homer_data”,
“host”: “172.16.66.53”
},
“RemoteNode-2”: {
“help”: “Settings for PGSQL Database (data)”,
“node”: “RemoteNode-2”,
“user”: “postgres”,
“pass”: “postgres”,
“name”: “homer_data”,
“host”: “172.16.66.54”
},
“RemoteNode-3”: {
“help”: “Settings for PGSQL Database (data)”,
“node”: “RemoteNode-3”,
“user”: “postgres”,
“pass”: “postgres”,
“name”: “homer_data”,
“host”: “172.16.66.55”
}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

七月的风0715

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值