Skip to content

Commit b6f7d1b

Browse files
committed
adjust new documents
1 parent 5f4428b commit b6f7d1b

File tree

2 files changed

+103
-60
lines changed

2 files changed

+103
-60
lines changed

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

Lines changed: 58 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22

3-
== 安装说明
3+
:sectnums:
4+
:sectnumlevels: 5
5+
:imagesdir: ./_images
6+
7+
= 安装说明
48

59
IvorySQL Cloud平台是一个综合性的解决方案,它集成了IvorySQL数据库以及周边生态,以提供全面的数据库和资源管理功能。安装前需要上github编译安装好
610

@@ -16,61 +20,66 @@ https://github.com/IvorySQL/ivory-operator/tree/IVYO++_++REL++_++5++_++STABLE
1620

1721
IvorySQL Cloud平台,目前支持Linux系统下的安装,以下为各部分对应的安装包:
1822

19-
[width="99%",cols="^28%,^72%",]
23+
[width="99%",cols="<28%,<72%",options="header"]
2024
|===
21-
|*组件* |*安装包*
22-
|前端 a|
23-
[arabic]
24-
. dist
25-
26-
|后端 |(1)cloudnative-1.0-SNAPSHOT.jar
25+
|组件|安装包
26+
|前端|dist
27+
|后端|cloudnative-1.0-SNAPSHOT.jar
2728
|K8S集群 a|
2829
[arabic]
2930
. docker.io/ivorysql/ivory-operator:v5.0
3031
. docker.io/ivorysql/pgadmin:ubi8-9.9-5.0-1
3132
. docker.io/ivorysql/pgbackrest:ubi8-2.56.0-5.0-1
3233
. docker.io/ivorysql/postgres-exporter:ubi8-0.17.0-5.0-1
3334
. docker.io/ivorysql/ivorysql:ubi8-5.0-5.0-1
34-
3535
|===
3636

3737
另外,云服务平台还需要用户安装以下组件:
3838

3939
* *后端数据库*:负责存储和管理所有与云资源、用户信息、权限控制、计费信息等相关的数据。需要使用PG系列数据库,如PostgreSQL、瀚高数据库、IvorySQL等。
4040
* *NGINX*:支持云服务平台的web服务。
4141

42-
=== 安装前准备
42+
== 安装前准备
4343

4444
安装前,所有服务器都必须完成以下准备工作。并且将IvorySQL Cloud平台部署在K8S(1.23)的服务器上,且该K8S集群需要有默认的storage class.
4545

46-
==== 关闭防火墙
46+
=== 关闭防火墙
4747

4848
所有服务器关闭防火墙,以保证他们之间的网络互通。
4949

50+
[literal]
51+
----
5052
systemctl stop firewalld.service
5153
5254
systemctl disable firewalld.service
55+
----
5356

5457
=== 后端部署
5558

59+
[[backend-db]]
5660
==== 后端数据库
5761

5862
IvorySQL Cloud平台的后端数据库需用户自行安装,请参考IvorySQL官网。
5963

6064
==== 后端服务程序
6165

62-
===== 2.2.2.1编译后端服务程序
66+
===== 编译后端服务程序
6367

68+
[literal]
69+
----
6470
# 克隆代码
6571
6672
git clone https://github.com/IvorySQL/ivory-cloud.git
6773
6874
# 进入到项目根目录
6975
7076
cd ivory-cloud
77+
----
7178

7279
请确保ivory-cloud++\++cloudnative++\++src++\++main++\++resources++\++monitor文件夹,及其所有的子文件夹下的以.sh结尾的文件是unix格式的,如果不是,请执行dos2unix命令转换成unix格式。
7380

81+
[literal]
82+
----
7483
dos2unix cloudnative++\++src++\++main++\++resources++\++monitor++\*++
7584
7685
# 编译
@@ -80,9 +89,12 @@ mvn clean
8089
mvn package -D maven.test.skip=true
8190
8291
打包完成后,可以在 ivory-cloud/cloudnative/target下找到cloudnative-1.0-SNAPSHOT.jar文件
92+
----
8393

84-
===== 2.2.2.2 部署程序
94+
===== 部署程序
8595

96+
[literal]
97+
----
8698
在K8S服务器上执行如下操作:
8799
88100
# 创建目录
@@ -107,7 +119,7 @@ application-native.yaml
107119
108120
spring++_++pro++_++logback.xml
109121
110-
## 修改配置文件,请将url、username、password修改为link:#后端数据库[2.2.1章节]安装的数据库的信息。
122+
## 修改配置文件,请将url、username、password修改为<<backend-db,后端数据库章节>>安装的数据库的信息。
111123
112124
## /home/ivory/config/application-native.yaml
113125
@@ -124,9 +136,12 @@ url: jdbc:postgresql://127.0.0.1:5432/ivorysql
124136
username: ivorysql
125137
126138
password: "ivory@123"
139+
----
127140

128-
===== 2.2.2.3启动后端服务程序
141+
==== 启动后端服务程序
129142

143+
[literal]
144+
----
130145
# 安装jdk1.8
131146
132147
yum install -y java-1.8.0-openjdk.x86++_++64
@@ -140,11 +155,14 @@ yum install -y java-1.8.0-openjdk.x86++_++64
140155
++[++root@cloud ivory++]++# ps -ef ++|++grep java
141156
142157
root 77494 1 0 10月09 ? 00:03:07 java -jar cloudnative-1.0-SNAPSHOT.jar
158+
----
143159

144160
=== 前端部署
145161

146162
==== 编译前端服务程序
147163

164+
[literal]
165+
----
148166
## 获取代码
149167
150168
git clone https://github.com/IvorySQL/ivory-cloud-web.git
@@ -160,9 +178,12 @@ npm install
160178
## 编译打包
161179
162180
npm run build:prod
181+
----
163182

164183
==== 修改目录和文件权限
165184

185+
[literal]
186+
----
166187
# 创建目录
167188
168189
++[++root@cloud opt++]++# mkdir -p /opt/cloud/web
@@ -174,11 +195,14 @@ npm run build:prod
174195
++[++root@cloud web++]++# chmod 755 /opt/cloud/web/dist
175196
176197
++[++root@cloud web++]++# chmod -R 777 /opt/cloud/web/dist
198+
----
177199

178200
==== 修改config.js
179201

180202
修改文件
181203

204+
[literal]
205+
----
182206
++[++root@cloud dist++]++# pwd
183207
184208
/home/cloud/web/dist
@@ -206,13 +230,16 @@ disableNative = false
206230
dbtype = "IvorySQL"
207231
208232
dbversion = "5.0"
233+
----
209234

210235
=== 安装部署nginx
211236

212237
IvorySQL Cloud平台服务器需要安装nginx,以支持云服务平台的web服务。nginx需要用户自行安装,这里提供一种安装方法作为参考。
213238

214239
==== 下载nginx安装包
215240

241+
[literal]
242+
----
216243
++[++root@cloud web++]++# wget https://nginx.org/download/nginx-1.20.1.tar.gz
217244
218245
++[++root@cloud web++]++# ls -lrt
@@ -224,17 +251,23 @@ IvorySQL Cloud平台服务器需要安装nginx,以支持云服务平台的web
224251
-rwxrwxr-x. 1 root root 2943732 10月 9 16:43 dist.tar.gz
225252
226253
drwxrwxrwx. 4 root root 103 10月 21 13:20 dist
254+
----
227255

228256
==== 安装相关依赖
229257

258+
[literal]
259+
----
230260
++[++root@host30 cloud++]++# yum -y install pcre-devel
231261
232262
++[++root@host30 cloud++]++# yum -y install openssl openssl-devel
263+
----
233264

234265
==== 编译安装nginx
235266

236267
nginx会被安装在configure时由--prefix指定的目录下,例如这里的/opt/cloud/nginx:
237268

269+
[literal]
270+
----
238271
## 解压缩nginx-1.20.1.tar.gz安装包
239272
240273
++[++root@cloud web++]++# tar -zxvf nginx-1.20.1.tar.gz
@@ -264,11 +297,14 @@ drwxrwxrwx. 4 root root 103 10月 21 13:20 dist
264297
++[++root@cloud nginx-1.20.1++]++# make
265298
266299
++[++root@cloud nginx-1.20.1++]++# make install
300+
----
267301

268302
==== 修改配置文件nginx.conf
269303

270304
配置文件在/opt/cloud/nginx路径下,可以按照github上readme对nginx.conf进行对比修改。ip请配置为当前服务器的ip。
271305

306+
[literal]
307+
----
272308
server ++{++
273309
274310
listen 9104;
@@ -292,9 +328,12 @@ root html;
292328
}
293329
294330
}
331+
----
295332

296333
==== 启动nginx
297334

335+
[literal]
336+
----
298337
++[++root@cloud sbin++]++# pwd
299338
300339
/opt/cloud/nginx/sbin
@@ -308,6 +347,7 @@ root 2179 131037 0 09:46 pts/1 00:00:00 grep --color=auto nginx
308347
root 55047 1 0 10月21 ? 00:00:00 nginx: master process ./nginx -c /opt/cloud/nginx/conf/nginx.conf
309348
310349
nobody 55048 55047 0 10月21 ? 00:00:00 nginx: worker process
350+
----
311351

312352
=== operator部署
313353

@@ -325,6 +365,8 @@ https://github.com/IvorySQL/ivory-operator/tree/IVYO_REL_4_STABLE[https://github
325365

326366
如果服务器可以直接访问到docker hub,可以跳过该章节。否则需要在所有的K8S集群节点提前load 如下docker镜像
327367

368+
[literal]
369+
----
328370
docker.io/ivorysql/pgadmin:ubi8-9.9-5.0-1
329371
330372
docker.io/ivorysql/pgbackrest:ubi8-2.56.0-5.0-1
@@ -340,4 +382,5 @@ docker.io/prom/prometheus:v2.33.5
340382
docker.io/prom/alertmanager:v0.22.2
341383
342384
docker.io/grafana/grafana:8.5.10
385+
----
343386

0 commit comments

Comments
 (0)