Skip to content

Commit 8ac4d88

Browse files
committed
fix some errors
1 parent 33b9737 commit 8ac4d88

10 files changed

Lines changed: 73 additions & 124 deletions

File tree

CN/modules/ROOT/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*** 容器化指南
1515
**** xref:master/4.6.1.adoc[K8S部署]
1616
**** xref:master/4.6.2.adoc[Operator部署]
17+
**** xref:master/4.6.4.adoc[Docker & Podman部署]
1718
**** xref:master/4.6.3.adoc[Docker Swarm & Docker Compose部署]
1819
*** xref:master/4.4.adoc[运维管理指南]
1920
*** 云服务平台指南

CN/modules/ROOT/pages/master/3.1.adoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,24 @@ https://www.ionos.com/help/server-cloud-infrastructure/server-administration/cre
4444
创建或编辑IvorySQL yum源配置文件/etc/yum.repos.d/ivorysql.repo
4545
```
4646
vim /etc/yum.repos.d/ivorysql.repo
47-
[ivorysql4]
48-
name=IvorySQL Server 4 $releasever - $basearch
49-
baseurl=https://yum.highgo.com/dists/ivorysql-rpms/4/redhat/rhel-$releasever-$basearch
47+
[ivorysql5]
48+
name=IvorySQL Server 5 $releasever - $basearch
49+
baseurl=https://yum.highgo.com/dists/ivorysql-rpms/5/redhat/rhel-$releasever-$basearch
5050
enabled=1
5151
gpgcheck=0
5252
```
53-
保存退出后,安装IvorySQL4
53+
保存退出后,安装IvorySQL5
5454
```
55-
$ sudo dnf install -y IvorySQL-5.0
55+
$ sudo dnf install -y ivorysql5-5.0
5656
```
5757
....
5858
59-
正确安装后,数据库将被安装在/opt/IvorySQL-5.0/路径下的IvorySQL-version(如:IvorySQL-5.0)文件夹内
59+
正确安装后,数据库将被安装在/usr/ivory-5/路径下的IvorySQL-version(如:IvorySQL-5.0)文件夹内
6060
....
6161

6262
执行以下命令为ivorysql用户赋权:
6363
```
64-
$ sudo chown -R ivorysql:ivorysql /opt/IvorySQL-5.0
64+
$ sudo chown -R ivorysql:ivorysql /usr/ivory-5
6565
```
6666
[[配置环境变量]]
6767
** 配置环境变量
@@ -70,9 +70,9 @@ $ sudo chown -R ivorysql:ivorysql /opt/IvorySQL-5.0
7070

7171
将以下配置写入~/.bash_profile文件并使用source命令该文件使环境变量生效:
7272
```
73-
PATH=/opt/IvorySQL-5.0/bin:$PATH
73+
PATH=/usr/ivory-5/bin:$PATH
7474
export PATH
75-
PGDATA=/opt/IvorySQL-5.0/data
75+
PGDATA=/usr/ivory-5/data
7676
export PGDATA
7777
```
7878
```
@@ -82,7 +82,7 @@ $ source ~/.bash_profile
8282
** 数据库初始化
8383

8484
```
85-
$ initdb -D /opt/IvorySQL-5.0/data
85+
$ initdb -D /usr/ivory-5/data
8686
```
8787
....
8888
其中-D参数用来指定数据库的数据目录。更多参数使用方法,请使用initdb --help命令获取。
@@ -91,7 +91,7 @@ $ initdb -D /opt/IvorySQL-5.0/data
9191
** 启动数据库服务
9292

9393
```
94-
$ pg_ctl -D /opt/IvorySQL-5.0/data -l ivory.log start
94+
$ pg_ctl -D /usr/ivory-5/data -l ivory.log start
9595
```
9696

9797
其中-D参数用来指定数据库的数据目录,如果<<配置环境变量>> 配置了PGDATA,则该参数可以省略。-l参数用来指定日志文件。更多参数使用方法,请使用pg_ctl --help命令获取。
@@ -100,7 +100,7 @@ $ pg_ctl -D /opt/IvorySQL-5.0/data -l ivory.log start
100100
查看确认数据库启动成功:
101101
```
102102
$ ps -ef | grep postgres
103-
ivorysql 3214 1 0 20:35 ? 00:00:00 /opt/IvorySQL-5.0/bin/postgres -D /opt/IvorySQL-5.0/data
103+
ivorysql 3214 1 0 20:35 ? 00:00:00 /usr/ivory-5/bin/postgres -D /usr/ivory-5/data
104104
ivorysql 3215 3214 0 20:35 ? 00:00:00 postgres: checkpointer
105105
ivorysql 3216 3214 0 20:35 ? 00:00:00 postgres: background writer
106106
ivorysql 3218 3214 0 20:35 ? 00:00:00 postgres: walwriter

CN/modules/ROOT/pages/master/4.1.adoc

Lines changed: 23 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -24,38 +24,17 @@ IvorySQL安装方式包括以下5种:
2424
创建或编辑IvorySQL yum源配置文件/etc/yum.repos.d/ivorysql.repo
2525
```
2626
vim /etc/yum.repos.d/ivorysql.repo
27-
[ivorysql4]
28-
name=IvorySQL Server 4 $releasever - $basearch
29-
baseurl=https://yum.highgo.com/dists/ivorysql-rpms/4/redhat/rhel-$releasever-$basearch
27+
[ivorysql5]
28+
name=IvorySQL Server 5 $releasever - $basearch
29+
baseurl=https://yum.highgo.com/dists/ivorysql-rpms/5/redhat/rhel-$releasever-$basearch
3030
enabled=1
3131
gpgcheck=0
3232
```
33-
保存退出后,安装IvorySQL4
33+
保存退出后,安装IvorySQL5
3434
```
35-
$ sudo dnf install -y IvorySQL-5.0
35+
$ sudo dnf install -y ivorysql5-5.0
3636
```
3737

38-
** 查看安装结果
39-
```
40-
dnf search IvorySQL
41-
```
42-
查看结果说明如下:
43-
|====
44-
| 序号 | 包名 | 描述
45-
| 1 | ivorysql4.x86_64 | IvorySQL客户端程序和库文件
46-
| 2 | ivorysql4-contrib.x86_64 | 随IvorySQL发布的已贡献的源代码和二进制文件
47-
| 3 | ivorysql4-devel.x86_64 | IvorySQL开发头文件和库
48-
| 4 | ivorysql4-docs.x86_64 | IvorySQL的额外文档
49-
| 5 | ivorysql4-libs.x86_64 | 所有IvorySQL客户端所需的共享库
50-
| 6 | ivorysql4-llvmjit.x86_64 | 对IvorySQL的即时编译支持
51-
| 7 | ivorysql4-plperl.x86_64 | 用于IvorySQL的过程语言Perl
52-
| 8 | ivorysql4-plpython3.x86_64 | 用于IvorySQL的过程语言Python3
53-
| 9 | ivorysql4-pltcl.x86_64 | 用于IvorySQL的过程语言Tcl
54-
| 10 | ivorysql4-server.x86_64 | 创建和运行IvorySQL服务器所需的程序
55-
| 11 | ivorysql4-test.x86_64 | 随IvorySQL发布的测试套件
56-
| 12 | ivorysql-release.noarch | 瀚高基础软件股份有限公司的Yum源配置RPM包
57-
|====
58-
5938
[[docker安装]]
6039
== docker安装
6140

@@ -94,7 +73,7 @@ $ sudo dnf install -y lz4 libicu libxslt python3
9473
```
9574
** 获取rpm包
9675
```
97-
$ sudo wget https://github.com/IvorySQL/IvorySQL/releases/download/IvorySQL_5.0/IvorySQL-5.0-a50789d-20250304.x86_64.rpm
76+
$ sudo wget https://github.com/IvorySQL/IvorySQL/releases/download/IvorySQL_5.0/IvorySQL-5.0-9d890e9-20251120.x86_64.rpm
9877
```
9978
** 安装rpm包
10079

@@ -104,7 +83,7 @@ $ sudo wget https://github.com/IvorySQL/IvorySQL/releases/download/IvorySQL_5.0/
10483
```
10584
$ sudo yum --disablerepo=* localinstall *.rpm
10685
```
107-
数据库将被安装在/opt/IvorySQL-5.0/路径下。
86+
数据库将被安装在/usr/ivory-5/路径下。
10887

10988
[[源码安装]]
11089
== 源码安装
@@ -117,15 +96,15 @@ $ sudo dnf groupinstall -y 'Development Tools'
11796
```
11897
$ git clone https://github.com/IvorySQL/IvorySQL.git
11998
$ cd IvorySQL
120-
$ git checkout -b IVORY_REL_4_STABLE origin/IVORY_REL_4_STABLE
99+
$ git checkout -b IVORY_REL_5_STABLE origin/IVORY_REL_5_STABLE
121100
```
122101
** 配置
123102

124103
+
125104

126105
在IvorySQL目录下,执行以下命令进行配置,请使用--prefix指定安装目录:
127106
```
128-
$ ./configure --prefix=/usr/local/ivorysql/ivorysql-4
107+
$ ./configure --prefix=/usr/local/ivorysql/ivorysql-5
129108
```
130109
** 编译
131110

@@ -166,7 +145,7 @@ $ sudo wget https://github.com/IvorySQL/IvorySQL/releases/download/IvorySQL_5.0/
166145
```
167146
$ sudo dpkg -i IvorySQL-5.0-a50789d-20250304.amd64.deb
168147
```
169-
数据库将被安装在/opt/IvorySQL-5.0/路径下。
148+
数据库将被安装在/usr/ivory-5/路径下。
170149

171150
== 启动数据库
172151
参考<<yum源安装>>、<<rpm安装>>、<<源码安装>>、<<deb安装>>的用户,需要手动启动数据库。
@@ -175,9 +154,9 @@ $ sudo dpkg -i IvorySQL-5.0-a50789d-20250304.amd64.deb
175154

176155
+
177156

178-
执行以下命令为安装用户赋权,示例用户为ivorysql,安装目录为/opt/IvorySQL-5.0/:
157+
执行以下命令为安装用户赋权,示例用户为ivorysql,安装目录为/usr/ivory-5/:
179158
```
180-
$ sudo chown -R ivorysql:ivorysql /opt/IvorySQL-5.0/
159+
$ sudo chown -R ivorysql:ivorysql /usr/ivory-5/
181160
```
182161
[[配置环境变量]]
183162
** 配置环境变量
@@ -186,9 +165,9 @@ $ sudo chown -R ivorysql:ivorysql /opt/IvorySQL-5.0/
186165

187166
将以下配置写入用户的~/.bash_profile文件并使用source命令该文件使环境变量生效:
188167
```
189-
PATH=/opt/IvorySQL-5.0/bin:$PATH
168+
PATH=/usr/ivory-5/bin:$PATH
190169
export PATH
191-
PGDATA=/opt/IvorySQL-5.0/data
170+
PGDATA=/usr/ivory-5/data
192171
export PGDATA
193172
```
194173
```
@@ -197,8 +176,8 @@ $ source ~/.bash_profile
197176
** 数据库初始化
198177

199178
```
200-
$ mkdir /opt/IvorySQL-5.0/data
201-
$ initdb -D /opt/IvorySQL-5.0/data
179+
$ mkdir /usr/ivory-5/data
180+
$ initdb -D /usr/ivory-5/data
202181
```
203182
....
204183
其中-D参数用来指定数据库的数据目录。更多参数使用方法,请使用initdb --help命令获取。
@@ -207,7 +186,7 @@ $ initdb -D /opt/IvorySQL-5.0/data
207186
** 启动数据库服务
208187

209188
```
210-
$ pg_ctl -D /opt/IvorySQL-5.0/data -l ivory.log start
189+
$ pg_ctl -D /usr/ivory-5/data -l ivory.log start
211190
```
212191

213192
其中-D参数用来指定数据库的数据目录,如果<<配置环境变量>> 配置了PGDATA,则该参数可以省略。-l参数用来指定日志文件。更多参数使用方法,请使用pg_ctl --help命令获取。
@@ -216,7 +195,7 @@ $ pg_ctl -D /opt/IvorySQL-5.0/data -l ivory.log start
216195
查看确认数据库启动成功:
217196
```
218197
$ ps -ef | grep postgres
219-
ivorysql 130427 1 0 02:45 ? 00:00:00 /opt/IvorySQL-5.0/bin/postgres -D /opt/IvorySQL-5.0/data
198+
ivorysql 130427 1 0 02:45 ? 00:00:00 /usr/ivory-5/bin/postgres -D /usr/ivory-5/data
220199
ivorysql 130428 130427 0 02:45 ? 00:00:00 postgres: checkpointer
221200
ivorysql 130429 130427 0 02:45 ? 00:00:00 postgres: background writer
222201
ivorysql 130431 130427 0 02:45 ? 00:00:00 postgres: walwriter
@@ -254,8 +233,7 @@ TIP: Docker运行IvorySQL时,需要添加额外参数,参考:psql -d ivory
254233

255234
执行以下命令依次卸载:
256235
```
257-
$ sudo dnf remove -y IvorySQL-5.0
258-
$ sudo rpm -e ivorysql-release-4.2-1.noarch
236+
$ sudo dnf remove -y ivorysql5-5.0
259237
```
260238

261239
=== docker安装的卸载
@@ -271,8 +249,8 @@ $ docker rmi ivorysql/ivorysql:5.0-ubi8
271249

272250
执行以下命令卸载并清理文件夹:
273251
```
274-
$ sudo yum remove --disablerepo=* ivorysql4\*
275-
$ sudo rm -rf /opt/IvorySQL-5.0
252+
$ sudo yum remove --disablerepo=* ivorysql5\*
253+
$ sudo rm -rf /usr/ivory-5
276254
```
277255

278256
=== 源码安装的卸载
@@ -281,13 +259,13 @@ $ sudo rm -rf /opt/IvorySQL-5.0
281259
```
282260
$ sudo make uninstall
283261
$ make clean
284-
$ sudo rm -rf /opt/IvorySQL-5.0
262+
$ sudo rm -rf /usr/ivory-5
285263
```
286264

287265
=== deb安装的卸载
288266

289267
执行以下命令卸载数据库并清理文件夹:
290268
```
291269
$ sudo dpkg -P IvorySQL-5.0
292-
$ sudo rm -rf /opt/IvorySQL-5.0
270+
$ sudo rm -rf /usr/ivory-5
293271
```

CN/modules/ROOT/pages/master/4.2.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $ sudo systemctl stop firewalld
7272
=== 搭建流复制
7373
在备节点上执行以下命令,创建一个主节点的基础备份,即搭建流复制:
7474
```
75-
$ sudo pg_basebackup -F p -P -X fetch -R -h <primary_ip> -p <primary_port> -U ivorysql -D /usr/local/ivorysql/ivorysql-4/data
75+
$ sudo pg_basebackup -F p -P -X fetch -R -h <primary_ip> -p <primary_port> -U ivorysql -D /usr/local/ivorysql/ivorysql-5/data
7676
```
7777
- -h为主节点ip;
7878
- -p为主节点数据库端口号,默认为5432;
@@ -85,9 +85,9 @@ $ sudo pg_basebackup -F p -P -X fetch -R -h <primary_ip> -p <primary_port> -U iv
8585

8686
将以下配置写入~/.bash_profile文件:
8787
```
88-
PATH=/usr/local/ivorysql/ivorysql-4/bin:$PATH
88+
PATH=/usr/local/ivorysql/ivorysql-5/bin:$PATH
8989
export PATH
90-
PGDATA=/usr/local/ivorysql/ivorysql-4/data
90+
PGDATA=/usr/local/ivorysql/ivorysql-5/data
9191
export PGDATA
9292
```
9393
source该文件使环境变量生效:
@@ -97,7 +97,7 @@ $ source ~/.bash_profile
9797

9898
=== 启动备节点数据库服务
9999
```
100-
$ pg_ctl -D /usr/local/ivorysql/ivorysql-4/data start
100+
$ pg_ctl -D /usr/local/ivorysql/ivorysql-5/data start
101101
```
102102

103103
== 集群的使用

CN/modules/ROOT/pages/master/4.3.adoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,10 +1971,6 @@ SELECT concat_lower_or_upper('Hello', 'World', uppercase => true);
19711971
19721972
== Oracle兼容功能
19731973
1974-
**详见:**
1975-
1976-
- [GUC变量](https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v4.5/15)
1977-
19781974
=== 更改表
19791975
19801976
==== 语法

EN/modules/ROOT/pages/master/3.1.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ https://www.ionos.com/help/server-cloud-infrastructure/server-administration/cre
4343
Create or edit IvorySQL yum repository configuration /etc/yum.repos.d/ivorysql.repo
4444
```
4545
vim /etc/yum.repos.d/ivorysql.repo
46-
[ivorysql4]
47-
name=IvorySQL Server 4 $releasever - $basearch
48-
baseurl=https://yum.highgo.com/dists/ivorysql-rpms/4/redhat/rhel-$releasever-$basearch
46+
[ivorysql5]
47+
name=IvorySQL Server 5 $releasever - $basearch
48+
baseurl=https://yum.highgo.com/dists/ivorysql-rpms/5/redhat/rhel-$releasever-$basearch
4949
enabled=1
5050
gpgcheck=0
5151
```
5252
After saving and exiting, you can install IvorySQL 4 with the following steps
5353
```
54-
$ sudo dnf install -y IvorySQL-5.0
54+
$ sudo dnf install -y ivorysql5-5.0
5555
```
5656

5757
[[setting-environment-variables]]
@@ -61,9 +61,9 @@ $ sudo dnf install -y IvorySQL-5.0
6161

6262
Add below contents in ~/.bash_profile file and source to make it effective:
6363
```
64-
PATH=/opt/IvorySQL-5.0/bin:$PATH
64+
PATH=/usr/ivory-5/bin:$PATH
6565
export PATH
66-
PGDATA=/opt/IvorySQL-5.0/data
66+
PGDATA=/usr/ivory-5/data
6767
export PGDATA
6868
```
6969
```
@@ -73,7 +73,7 @@ $ source ~/.bash_profile
7373
** Initializing database
7474

7575
```
76-
$ initdb -D /opt/IvorySQL-5.0/data
76+
$ initdb -D /usr/ivory-5/data
7777
```
7878
....
7979
The -D option specifies the directory where the database cluster should be stored. This is the only information required by initdb, but you can avoid writing it by setting the PGDATA environment variable, which can be convenient since the database server can find the database directory later by the same variable.
@@ -84,7 +84,7 @@ $ initdb -D /opt/IvorySQL-5.0/data
8484
** Starting IvorySQL service
8585

8686
```
87-
$ pg_ctl -D /opt/IvorySQL-5.0/data -l ivory.log start
87+
$ pg_ctl -D /usr/ivory-5/data -l ivory.log start
8888
```
8989

9090
The -D option specifies the file system location of the database configuration files. If this option is omitted, the environment variable PGDATA in <<setting-environment-variables>> is used. -l option appends the server log output to filename. If the file does not exist, it is created.
@@ -95,7 +95,7 @@ $ pg_ctl -D /opt/IvorySQL-5.0/data -l ivory.log start
9595
Confirm it’s successfully started:
9696
```
9797
$ ps -ef | grep postgres
98-
ivorysql 3214 1 0 20:35 ? 00:00:00 /opt/IvorySQL-5.0/bin/postgres -D /opt/IvorySQL-5.0/data
98+
ivorysql 3214 1 0 20:35 ? 00:00:00 /usr/ivory-5/bin/postgres -D /usr/ivory-5/data
9999
ivorysql 3215 3214 0 20:35 ? 00:00:00 postgres: checkpointer
100100
ivorysql 3216 3214 0 20:35 ? 00:00:00 postgres: background writer
101101
ivorysql 3218 3214 0 20:35 ? 00:00:00 postgres: walwriter

0 commit comments

Comments
 (0)