@@ -14,7 +14,7 @@ IvorySQL Cloud平台是一个综合性的解决方案,它集成了IvorySQL数
1414
1515搭建好K8S集群,并在集群master节点上安装ivory-operator
1616
17- https://github.com/IvorySQL/ivory-operator/tree/IVYO++_++REL++_++5++_++STABLE
17+ https://github.com/IvorySQL/ivory-operator/tree/IVYO_REL_5_STABLE
1818
1919== IvorySQL Cloud平台安装
2020
@@ -76,11 +76,11 @@ git clone https://github.com/IvorySQL/ivory-cloud.git
7676cd ivory-cloud
7777----
7878
79- 请确保ivory-cloud++\++ cloudnative++\++ src++\++ main++\++ resources++\++ monitor文件夹,及其所有的子文件夹下的以.sh结尾的文件是unix格式的,如果不是,请执行dos2unix命令转换成unix格式。
79+ 请确保ivory-cloud\ cloudnative\ src\ main\ resources\ monitor文件夹,及其所有的子文件夹下的以.sh结尾的文件是unix格式的,如果不是,请执行dos2unix命令转换成unix格式。
8080
8181[literal]
8282----
83- dos2unix cloudnative++\++ src++\++ main++\++ resources++\++ monitor++\*++
83+ dos2unix cloudnative\ src\ main\ resources\ monitor\*
8484
8585# 编译
8686
@@ -117,7 +117,7 @@ application.yaml
117117
118118application-native.yaml
119119
120- spring++_++pro++_++logback .xml
120+ spring_pro_logback .xml
121121
122122## 修改配置文件,请将url、username、password修改为<<backend-db,后端数据库章节>>安装的数据库的信息。
123123
@@ -144,15 +144,15 @@ password: "ivory@123"
144144----
145145# 安装jdk1.8
146146
147- yum install -y java-1.8.0-openjdk.x86++_++64
147+ yum install -y java-1.8.0-openjdk.x86_64
148148
149- ++[++ root@cloud ivory++]++ # pwd
149+ [ root@cloud ivory] # pwd
150150
151151/home/ivory/
152152
153- ++[++ root@cloud ivory++]++ # nohup java -jar cloudnative-1.0-SNAPSHOT.jar ++>++ log++_++native 2++>++ &1 &
153+ [ root@cloud ivory] # nohup java -jar cloudnative-1.0-SNAPSHOT.jar > log_native 2> &1 &
154154
155- ++[++ root@cloud ivory++]++ # ps -ef ++|++ grep java
155+ [ root@cloud ivory] # ps -ef | grep java
156156
157157root 77494 1 0 10月09 ? 00:03:07 java -jar cloudnative-1.0-SNAPSHOT.jar
158158----
@@ -186,15 +186,15 @@ npm run build:prod
186186----
187187# 创建目录
188188
189- ++[++ root@cloud opt++]++ # mkdir -p /opt/cloud/web
189+ [ root@cloud opt] # mkdir -p /opt/cloud/web
190190
191191# 将前端构建后的dist文件夹置于/opt/cloud/web
192192
193193# 授权
194194
195- ++[++ root@cloud web++]++ # chmod 755 /opt/cloud/web/dist
195+ [ root@cloud web] # chmod 755 /opt/cloud/web/dist
196196
197- ++[++ root@cloud web++]++ # chmod -R 777 /opt/cloud/web/dist
197+ [ root@cloud web] # chmod -R 777 /opt/cloud/web/dist
198198----
199199
200200==== 修改config.js
@@ -203,17 +203,17 @@ npm run build:prod
203203
204204[literal]
205205----
206- ++[++ root@cloud dist++]++ # pwd
206+ [ root@cloud dist] # pwd
207207
208208/home/cloud/web/dist
209209
210- ++[++ root@cloud dist++]++ # vi config.js
210+ [ root@cloud dist] # vi config.js
211211
212- var PLATFROM++_++CONFIG = ++{++ };
212+ var PLATFROM_CONFIG = { };
213213
214214// ip请更换为当前服务器地址
215215
216- PLATFROM++_++CONFIG .baseUrl = "http://192.168.31.43:8081/cloudapi/api/v1"
216+ PLATFROM_CONFIG .baseUrl = "http://192.168.31.43:8081/cloudapi/api/v1"
217217
218218//true: need to show "注册" on login page
219219
@@ -240,9 +240,9 @@ IvorySQL Cloud平台服务器需要安装nginx,以支持云服务平台的web
240240
241241[literal]
242242----
243- ++[++ root@cloud web++]++ # wget https://nginx.org/download/nginx-1.20.1.tar.gz
243+ [ root@cloud web] # wget https://nginx.org/download/nginx-1.20.1.tar.gz
244244
245- ++[++ root@cloud web++]++ # ls -lrt
245+ [ root@cloud web] # ls -lrt
246246
247247总用量 3924
248248
@@ -257,9 +257,9 @@ drwxrwxrwx. 4 root root 103 10月 21 13:20 dist
257257
258258[literal]
259259----
260- ++[++ root@host30 cloud++]++ # yum -y install pcre-devel
260+ [ root@host30 cloud] # yum -y install pcre-devel
261261
262- ++[++ root@host30 cloud++]++ # yum -y install openssl openssl-devel
262+ [ root@host30 cloud] # yum -y install openssl openssl-devel
263263----
264264
265265==== 编译安装nginx
@@ -270,11 +270,11 @@ nginx会被安装在configure时由--prefix指定的目录下,例如这里的/
270270----
271271## 解压缩nginx-1.20.1.tar.gz安装包
272272
273- ++[++ root@cloud web++]++ # tar -zxvf nginx-1.20.1.tar.gz
273+ [ root@cloud web] # tar -zxvf nginx-1.20.1.tar.gz
274274
275275## 解压后生成nginx-1.20.1文件夹
276276
277- ++[++ root@cloud web++]++ # ls -lrt
277+ [ root@cloud web] # ls -lrt
278278
279279总用量 3924
280280
@@ -288,15 +288,15 @@ drwxrwxrwx. 4 root root 103 10月 21 13:20 dist
288288
289289## 配置导向
290290
291- ++[++ root@cloud web++]++ # cd nginx-1.20.1
291+ [ root@cloud web] # cd nginx-1.20.1
292292
293- ++[++ root@cloud nginx-1.20.1++]++ # ./configure --prefix=/opt/cloud/nginx --with-http++_++ssl++_++module
293+ [ root@cloud nginx-1.20.1] # ./configure --prefix=/opt/cloud/nginx --with-http_ssl_module
294294
295295## 编译安装
296296
297- ++[++ root@cloud nginx-1.20.1++]++ # make
297+ [ root@cloud nginx-1.20.1] # make
298298
299- ++[++ root@cloud nginx-1.20.1++]++ # make install
299+ [ root@cloud nginx-1.20.1] # make install
300300----
301301
302302==== 修改配置文件nginx.conf
@@ -305,23 +305,23 @@ drwxrwxrwx. 4 root root 103 10月 21 13:20 dist
305305
306306[literal]
307307----
308- server ++{++
308+ server {
309309
310310listen 9104;
311311
312- server++_++name 192.168.31.43;
312+ server_name 192.168.31.43;
313313
314- location / ++{++
314+ location / {
315315
316316root /opt/cloud/web/dist;
317317
318318index index.html index.htm;
319319
320320}
321321
322- error++_++page 500 502 503 504 /50x.html;
322+ error_page 500 502 503 504 /50x.html;
323323
324- location = /50x.html ++{++
324+ location = /50x.html {
325325
326326root html;
327327
@@ -334,13 +334,13 @@ root html;
334334
335335[literal]
336336----
337- ++[++ root@cloud sbin++]++ # pwd
337+ [ root@cloud sbin] # pwd
338338
339339/opt/cloud/nginx/sbin
340340
341- ++[++ root@cloud sbin++]++ # ./nginx -c /opt/cloud/nginx/conf/nginx.conf
341+ [ root@cloud sbin] # ./nginx -c /opt/cloud/nginx/conf/nginx.conf
342342
343- ++[++ root@cloud sbin++]++ # ps -ef ++|++ grep nginx
343+ [ root@cloud sbin] # ps -ef | grep nginx
344344
345345root 2179 131037 0 09:46 pts/1 00:00:00 grep --color=auto nginx
346346
@@ -357,7 +357,7 @@ nobody 55048 55047 0 10月21 ? 00:00:00 nginx: worker process
357357
358358参见
359359
360- https://github.com/IvorySQL/ivory-operator/tree/IVYO_REL_4_STABLE[https://github.com/IvorySQL/ivory-operator/tree/IVYO++_++REL++_++5++_++STABLE ]
360+ https://github.com/IvorySQL/ivory-operator/tree/IVYO_REL_4_STABLE[https://github.com/IvorySQL/ivory-operator/tree/IVYO_REL_5_STABLE ]
361361
362362网站上的readme
363363
0 commit comments