Skip to content

Commit 70b8846

Browse files
committed
Adjust italic font
1 parent 84bb352 commit 70b8846

File tree

12 files changed

+139
-86
lines changed

12 files changed

+139
-86
lines changed

CN/modules/ROOT/pages/v1.17/34.adoc

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,72 +22,81 @@ IvorySQL的安装包里已经集成了PGroonga插件,如果使用安装包安
2222
==== 安装 groonga
2323

2424
** 安装依赖 kytea
25-
```
25+
[literal]
26+
----
2627
git clone https://github.com/neubig/kytea.git
2728
autoreconf -i
2829
./configure
2930
make
3031
sudo make install
31-
```
32+
----
3233

3334
** 安装依赖 libzmq
34-
```
35+
[literal]
36+
----
3537
从https://github.com/zeromq/libzmq/releases/tag/v4.3.5 下载zeromq-4.3.5.tar.gz
3638
tar xvf zeromq-4.3.5.tar.gz
3739
cd zeromq-4.3.5/
3840
./configure
3941
make
4042
sudo make install
41-
```
43+
----
4244

4345
** 下载 groonga包,安装指定依赖
44-
```
46+
[literal]
47+
----
4548
wget https://packages.groonga.org/source/groonga/groonga-latest.tar.gz
4649
tar xvf groonga-15.1.5.tar.gz
4750
cd groonga-15.1.5
4851
#运行这个脚本安装依赖,支持apt和dnf包管理工具
4952
./ setup.sh
50-
```
53+
----
5154

5255
** 编译安装
53-
```
56+
[literal]
57+
----
5458
# -S 指定groonga源码目录, -B 指定build目录,这个目录是个源码目录之外的一个只用于build的目录
5559
cmake -S /home/ivorysql/groonga-15.1.5 -B /home/ivorysql/groonga_build --preset=release-maximum
5660
cmake --build /home/ivorysql/groonga_build
5761
sudo cmake --install /home/ivorysql/groonga_build
5862
# 更新动态链接库缓存
5963
sudo ldconfig
60-
```
64+
----
6165

6266
** 验证 groonga安装成功
63-
```
67+
[literal]
68+
----
6469
$ groonga --version
6570
Groonga 15.1.5 [Linux,x86_64,utf8,match-escalation-threshold=0,nfkc,mecab,message-pack,mruby,onigmo,zlib,lz4,zstandard,epoll,apache-arrow,xxhash,blosc,bfloat16,h3,simdjson,llama.cpp]
66-
```
71+
----
6772

6873
==== 安装 pgroonga
69-
```
74+
[literal]
75+
----
7076
wget https://packages.groonga.org/source/pgroonga/pgroonga-4.0.1.tar.gz
7177
tar xvf pgroonga-4.0.1.tar.gz
7278
cd pgroonga-4.0.1
73-
```
79+
----
7480

7581
编译PGroonga,有个选项:HAVE_MSGPACK=1,它是用于支持WAL,使用这个选项需要安装msgpack-c 1.4.1或者更高版本。在基于Debian的平台使用libmsgpack-dev包,在CentOS 7上用msgpack-devel
76-
```
82+
[literal]
83+
----
7784
#安装依赖
7885
sudo apt install libmsgpack-dev
79-
```
86+
----
8087

8188
运行make前确保pg_config命令的路径在PATH环境变量里
82-
```
89+
[literal]
90+
----
8391
make HAVE_MSGPACK=1
8492
make install
85-
```
93+
----
8694

8795
== 创建Extension并确认PGroonga版本
8896

8997
psql 连接到数据库,执行如下命令:
90-
```
98+
[literal]
99+
----
91100
ivorysql=# CREATE extension pgroonga;
92101
CREATE EXTENSION
93102
@@ -96,7 +105,7 @@ ivorysql=# SELECT * FROM pg_available_extensions WHERE name = 'pgroonga';
96105
---------+-----------------+-------------------+-------------------------------------------------------------------------------
97106
pgroonga| 4.0.1 | 4.0.1 | Super fast and all languages supported full text search index based on Groonga
98107
(1 row)
99-
```
108+
----
100109

101110
== 使用
102111
关于PGroonga的使用,请参阅 https://pgroonga.github.io/tutorial[PGroonga官方文档]

CN/modules/ROOT/pages/v1.17/35.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ IvorySQL的安装包里已经集成了pgddl插件,如果使用安装包安装
2020
=== 源码安装
2121
从https://github.com/lacanoid/pgddl/releases/tag/0.20 下载pgddl-0.20.tar.gz,解压缩。
2222

23+
[literal]
2324
----
2425
cd pgddl-0.20
2526
# 设置PG_CONFIG环境变量值为pg_config路径,eg:/usr/local/ivorysql/ivorysql-1/bin/pg_config
@@ -30,6 +31,7 @@ make PG_CONFIG=/path/to/pg_config install
3031
== 创建Extension并确认ddlx版本
3132

3233
psql 连接到数据库,执行如下命令:
34+
[literal]
3335
----
3436
ivorysql=# CREATE extension ddlx;
3537
CREATE EXTENSION

CN/modules/ROOT/pages/v1.17/36.adoc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ IvorySQL的安装包里已经集成了pgRouting插件,如果使用安装包安
2323

2424
对perl有依赖,perl一般在装IvorySQL时已经装上了,这里不用再装。
2525
CMake版本要求 >= 3.12, Boost版本 >= 1.56
26-
```
26+
[literal]
27+
----
2728
#安装依赖
2829
sudo apt install cmake libboost-all-dev
29-
```
30+
----
3031

3132
** 编译安装
32-
```
33+
[literal]
34+
----
3335
wget https://github.com/pgRouting/pgrouting/releases/download/v3.5.1/pgrouting-3.5.1.tar.gz
3436
tar xvf pgrouting-3.5.1.tar.gz
3537
cd pgrouting-3.5.1
@@ -38,12 +40,13 @@ cd build
3840
cmake .. -DPOSTGRESQL_PG_CONFIG=/path/to/pg_config # eg: /usr/local/ivorysql/ivorysql-1/bin/pg_config
3941
make
4042
sudo make install
41-
```
43+
----
4244

4345
== 创建Extension并确认ddlx版本
4446

4547
psql 连接到数据库,执行如下命令:
46-
```
48+
[literal]
49+
----
4750
ivorysql=# CREATE extension pgrouting;
4851
CREATE EXTENSION
4952
@@ -52,7 +55,7 @@ ivorysql=# SELECT * FROM pg_available_extensions WHERE name = 'pgrouting';
5255
-----------+-----------------+-------------------+---------------------
5356
pgrouting | 3.5.1 | | pgRouting Extension
5457
(1 row)
55-
```
58+
----
5659

5760
== 使用
5861
关于pgRouting的使用,请参阅 https://docs.pgrouting.org/[pgRouting官方文档]

CN/modules/ROOT/pages/v1.17/37.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ pg_cron 是 PostgreSQL 的开源定时任务扩展,允许直接在数据库内
1717

1818
=== 源码安装
1919

20-
```
20+
[literal]
21+
----
2122
# 拉取pg_cron源码
2223
git clone https://github.com/citusdata/pg_cron.git
2324
cd pg_cron
2425
# 将pg_config的路径设置到PATH环境变量里,eg:
2526
export PATH=/usr/local/ivorysql/ivorysql-1/bin/:$PATH
2627
make
2728
make install
28-
```
29+
----
2930

3031
=== 配置文件 (ivorysql.conf)
3132

CN/modules/ROOT/pages/v1.17/38.adoc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,29 @@ IvorySQL的安装包里已经集成了pgsql-http插件,如果使用安装包
2222
** 安装依赖
2323

2424
对libcurl有依赖,libcurl的开发文件(例如 libcurl4-openssl-dev)需要提前安装上
25-
```
25+
[literal]
26+
----
2627
#安装依赖
2728
sudo apt install libcurl4-openssl-dev
28-
```
29+
----
2930

3031
** 编译安装
3132

3233
从https://github.com/pramsey/pgsql-http/releases/tag/v1.7.0 下载 1.7.0的源码包 pgsql-http-1.7.0.tar.gz
33-
```
34+
[literal]
35+
----
3436
tar xvf pgsql-http-1.7.0.tar.gz
3537
cd pgsql-http-1.7.0
3638
# 确保pg_config在PATH里可以访问,eg: /usr/local/ivorysql/ivorysql-1/bin/pg_config
3739
make
3840
sudo make install
39-
```
41+
----
4042

4143
== 创建Extension并确认http版本
4244

4345
psql 连接到数据库,执行如下命令:
44-
```
46+
[literal]
47+
----
4548
ivorysql=# CREATE extension http;
4649
CREATE EXTENSION
4750
@@ -50,7 +53,7 @@ ivorysql=# SELECT * FROM pg_available_extensions WHERE name = 'http';
5053
-----------+-----------------+-------------------+-------------------------------------------------------------------------
5154
http | 1.7 | 1.7 | HTTP client for PostgreSQL, allows web page retrieval inside the database.
5255
(1 row)
53-
```
56+
----
5457

5558
== 使用
5659
关于pgsql-http的使用,请参阅 https://github.com/pramsey/pgsql-http[pgsql-http官方文档]

CN/modules/ROOT/pages/v1.17/40.adoc

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,40 @@ IvorySQL的安装包里已经集成了pgvectorscale插件,如果使用安装
2121

2222
** 安装Rust工具链
2323

24-
```
24+
[literal]
25+
----
2526
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
26-
```
27+
----
2728

2829
** 下载pgvectorscale源码
2930

3031
从https://github.com/timescale/pgvectorscale/releases/tag/0.8.0 下载 0.8.0的源码包 pgvectorscale-0.8.0.tar.gz
31-
```
32+
[literal]
33+
----
3234
tar xvf pgvectorscale-0.8.0.tar.gz
3335
cd pgvectorscale-0.8.0/pgvectorscale
34-
```
36+
----
3537

3638
** 安装cargo-pgrx
3739

38-
```
40+
[literal]
41+
----
3942
cargo install --locked cargo-pgrx --version $(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "pgrx") | .version')
4043
cargo pgrx init --pg14 pg_config
41-
```
44+
----
4245

4346
** 编译并安装扩展
4447

45-
```
48+
[literal]
49+
----
4650
cargo pgrx install --release
47-
```
51+
----
4852

4953
== 创建Extension并确认pgvectorscale版本
5054

5155
psql 连接到数据库,执行如下命令:
52-
```
56+
[literal]
57+
----
5358
ivorysql=# CREATE EXTENSION IF NOT EXISTS vectorscale CASCADE;
5459
CREATE EXTENSION
5560
@@ -58,7 +63,7 @@ ivorysql=# SELECT * FROM pg_available_extensions WHERE name = 'vectorscale';
5863
----------- +-----------------+-------------------+--------------------------------------------
5964
vectorscale | 0.8.0 | 0.8.0 | diskann access method for vector search.
6065
(1 row)
61-
```
66+
----
6267

6368
== 使用
6469
关于pgvectorscale的使用,请参阅 https://github.com/timescale/pgvectorscale[pgvectorscale官方文档]

0 commit comments

Comments
 (0)