08 2022 档案
摘要:elasticSearch + logstash + postgresql 通过logstash将postgres数据库的数据同步到elasticSearch,整理步骤如下: 一、环境准备 1.1 postgres数据库 本地安装postgres数据库,方法可自行百度 1.2 安装elasticSe
阅读全文
摘要:从pg数据库同步到redis,主要分两步: 1、从pg数据库生成文件(100万条数据,大概需要30秒): 1.1 windows下通过终端窗口执行如下命令: psql.exe -U postgres -h pg主机地址 -p pg端口 -d pg的某个库 -t -A -c "select '*3'|
阅读全文