File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
CN/modules/ROOT/pages/master/ecosystem_components
EN/modules/ROOT/pages/master/ecosystem_components Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -58,16 +58,16 @@ pg_hba.conf不需要修改,有以下内容即可(仅限本地链接测试)
5858在第一个终端中执行命令:
5959[literal]
6060----
61- sudo -u ivorysql /home/ivorysql/ivy/inst /bin/pg_recvlogical -d postgres --slot wal2json_slot --create-slot -P wal2json
61+ sudo -u ivorysql /usr/ivory-5/bin /bin/pg_recvlogical -d postgres --slot wal2json_slot --create-slot -P wal2json
6262
6363启动监听,实时输出变更的JSON格式
64- sudo -u ivorysql /home/ivorysql/ivy/inst /bin/pg_recvlogical -d postgres --slot wal2json_slot --start -o pretty-print=1 -f -
64+ sudo -u ivorysql /usr/ivory-5/bin /bin/pg_recvlogical -d postgres --slot wal2json_slot --start -o pretty-print=1 -f -
6565----
6666
6767在第二个终端中连接数据库:
6868[literal]
6969----
70- bin/psql -d postgres -p 1521
70+ /usr/ivory-5/ bin/psql -d postgres -p 1521
7171----
7272
7373执行下面的SQL语句:
Original file line number Diff line number Diff line change @@ -56,16 +56,16 @@ Open the first terminal and execute command:
5656
5757[literal]
5858----
59- sudo -u ivorysql /home/ivorysql/ivy/inst /bin/pg_recvlogical -d postgres --slot wal2json_slot --create-slot -P wal2json
59+ sudo -u ivorysql /usr/ivory-5 /bin/pg_recvlogical -d postgres --slot wal2json_slot --create-slot -P wal2json
6060
6161Start monitoring, output the changes in JSON format and in real time.
62- sudo -u ivorysql /home/ivorysql/ivy/inst /bin/pg_recvlogical -d postgres --slot wal2json_slot --start -o pretty-print=1 -f -
62+ sudo -u ivorysql /usr/ivory-5 /bin/pg_recvlogical -d postgres --slot wal2json_slot --start -o pretty-print=1 -f -
6363----
6464
6565Connect database in the second terminal:
6666[literal]
6767----
68- bin/psql -d postgres -p 1521
68+ /usr/ivory-5/ bin/psql -d postgres -p 1521
6969----
7070
7171Execute the following SQL statement:
You can’t perform that action at this time.
0 commit comments