vue2-openlayers 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +24 -0
- package/babel.config.js +5 -0
- package/dist/css/index.34f0f0b9.css +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/img/bottom_box.625e42a5.png +0 -0
- package/dist/img/car1.dd9a098b.png +0 -0
- package/dist/img/complete.2d0fa612.png +0 -0
- package/dist/img/diago_content.0d88c929.png +0 -0
- package/dist/img/diago_text_box.2e4da66b.png +0 -0
- package/dist/img/diago_title.2bd95b7a.png +0 -0
- package/dist/img/exception.a1eeefc3.png +0 -0
- package/dist/img/info1.829a6d7e.png +0 -0
- package/dist/img/info2.09e6e79e.png +0 -0
- package/dist/img/info3.3f96f756.png +0 -0
- package/dist/img/info4.6adcb927.png +0 -0
- package/dist/img/info5.ff3fdd2f.png +0 -0
- package/dist/img/info6.6e159d95.png +0 -0
- package/dist/img/left_box.40419b36.png +0 -0
- package/dist/img/money1.0743e701.png +0 -0
- package/dist/img/money2.58610d4d.png +0 -0
- package/dist/img/operating_fee.e6523ccc.png +0 -0
- package/dist/img/processing.28e46e7f.png +0 -0
- package/dist/img/public_content_box.39782fb5.png +0 -0
- package/dist/img/public_title_box1.6002afd4.png +0 -0
- package/dist/img/right_box.08458fe5.png +0 -0
- package/dist/img/success1.0cbc58af.png +0 -0
- package/dist/img/success2.af1a7499.png +0 -0
- package/dist/img/success3.d74caac5.png +0 -0
- package/dist/img/success4.37cc2343.png +0 -0
- package/dist/img/top_box.806bc756.png +0 -0
- package/dist/img/warehouse_map_popup.fa26d6cd.png +0 -0
- package/dist/img/work_error.3c528fdd.png +0 -0
- package/dist/img/work_su.0cbc58af.png +0 -0
- package/dist/img/work_wait.a2a706c9.png +0 -0
- package/dist/index.html +13 -0
- package/dist/js/chunk-vendors.901bdf0b.js +8 -0
- package/dist/js/chunk-vendors.901bdf0b.js.map +1 -0
- package/dist/js/index.29606843.js +2 -0
- package/dist/js/index.29606843.js.map +1 -0
- package/docs/.vuepress/config.js +25 -0
- package/docs/.vuepress/dist/404.html +20 -0
- package/docs/.vuepress/dist/assets/css/0.styles.7cfabf05.css +1 -0
- package/docs/.vuepress/dist/assets/img/7F8296FF-4A75-4013-BBFC-D482BF5303FF.597ff8a1.png +0 -0
- package/docs/.vuepress/dist/assets/img/gateway.98d6c8ec.jpg +0 -0
- package/docs/.vuepress/dist/assets/img/mysql_images.07b3a3e5.jpg +0 -0
- package/docs/.vuepress/dist/assets/img/nacos.741b050d.jpg +0 -0
- package/docs/.vuepress/dist/assets/img/rabbitmq.50b12be7.jpg +0 -0
- package/docs/.vuepress/dist/assets/img/redis_images.f0979945.jpg +0 -0
- package/docs/.vuepress/dist/assets/img/search.83621669.svg +1 -0
- package/docs/.vuepress/dist/assets/img/server-structure.6e0aa81e.png +0 -0
- package/docs/.vuepress/dist/assets/js/10.285f55d1.js +1 -0
- package/docs/.vuepress/dist/assets/js/11.decff412.js +1 -0
- package/docs/.vuepress/dist/assets/js/12.b9ed6e21.js +1 -0
- package/docs/.vuepress/dist/assets/js/13.d9c8c7a9.js +1 -0
- package/docs/.vuepress/dist/assets/js/14.6495a0e6.js +1 -0
- package/docs/.vuepress/dist/assets/js/15.70d64d1a.js +1 -0
- package/docs/.vuepress/dist/assets/js/16.a93c018c.js +1 -0
- package/docs/.vuepress/dist/assets/js/17.ed91eb16.js +1 -0
- package/docs/.vuepress/dist/assets/js/18.d07cd593.js +1 -0
- package/docs/.vuepress/dist/assets/js/19.4b8a0f22.js +1 -0
- package/docs/.vuepress/dist/assets/js/2.2668fa1b.js +1 -0
- package/docs/.vuepress/dist/assets/js/20.52de9326.js +1 -0
- package/docs/.vuepress/dist/assets/js/21.2293a5ca.js +1 -0
- package/docs/.vuepress/dist/assets/js/3.fd22fded.js +1 -0
- package/docs/.vuepress/dist/assets/js/4.ad26b2fa.js +1 -0
- package/docs/.vuepress/dist/assets/js/5.a1c97bcb.js +1 -0
- package/docs/.vuepress/dist/assets/js/6.32f67120.js +1 -0
- package/docs/.vuepress/dist/assets/js/7.99161716.js +1 -0
- package/docs/.vuepress/dist/assets/js/8.a0d65864.js +1 -0
- package/docs/.vuepress/dist/assets/js/9.2d06e692.js +1 -0
- package/docs/.vuepress/dist/assets/js/app.0be82e56.js +15 -0
- package/docs/.vuepress/dist/config/config_list.html +58 -0
- package/docs/.vuepress/dist/config/index.html +69 -0
- package/docs/.vuepress/dist/guide/admin.html +26 -0
- package/docs/.vuepress/dist/guide/deepchange.html +213 -0
- package/docs/.vuepress/dist/guide/gateway.html +45 -0
- package/docs/.vuepress/dist/guide/hystrix.html +26 -0
- package/docs/.vuepress/dist/guide/index.html +66 -0
- package/docs/.vuepress/dist/guide/nacos.html +26 -0
- package/docs/.vuepress/dist/guide/opsdev.html +26 -0
- package/docs/.vuepress/dist/guide/rabbitmq.html +26 -0
- package/docs/.vuepress/dist/guide/skywarking.html +52 -0
- package/docs/.vuepress/dist/guide/summary.html +74 -0
- package/docs/.vuepress/dist/help/index.html +28 -0
- package/docs/.vuepress/dist/help/markdown.html +33 -0
- package/docs/.vuepress/dist/images/7F8296FF-4A75-4013-BBFC-D482BF5303FF.png +0 -0
- package/docs/.vuepress/dist/images/gateway.jpg +0 -0
- package/docs/.vuepress/dist/images/mysql_images.jpg +0 -0
- package/docs/.vuepress/dist/images/nacos.jpg +0 -0
- package/docs/.vuepress/dist/images/rabbitmq.jpg +0 -0
- package/docs/.vuepress/dist/images/redis_images.jpg +0 -0
- package/docs/.vuepress/dist/images/server-structure.png +0 -0
- package/docs/.vuepress/dist/index.html +26 -0
- package/docs/.vuepress/dist/logo.jpg +0 -0
- package/docs/.vuepress/nav.js +34 -0
- package/docs/.vuepress/public/images/7F8296FF-4A75-4013-BBFC-D482BF5303FF.png +0 -0
- package/docs/.vuepress/public/images/gateway.jpg +0 -0
- package/docs/.vuepress/public/images/mysql_images.jpg +0 -0
- package/docs/.vuepress/public/images/nacos.jpg +0 -0
- package/docs/.vuepress/public/images/rabbitmq.jpg +0 -0
- package/docs/.vuepress/public/images/redis_images.jpg +0 -0
- package/docs/.vuepress/public/images/server-structure.png +0 -0
- package/docs/.vuepress/public/logo.jpg +0 -0
- package/docs/.vuepress/sidebar.js +62 -0
- package/docs/README.md +15 -0
- package/docs/config/README.md +108 -0
- package/docs/config/config_list.md +42 -0
- package/docs/guide/README.md +79 -0
- package/docs/guide/admin.md +25 -0
- package/docs/guide/deepchange.md +393 -0
- package/docs/guide/gateway.md +40 -0
- package/docs/guide/hystrix.md +21 -0
- package/docs/guide/nacos.md +7 -0
- package/docs/guide/opsdev.md +12 -0
- package/docs/guide/rabbitmq.md +15 -0
- package/docs/guide/skywarking.md +77 -0
- package/docs/guide/summary.md +120 -0
- package/docs/help/README.md +29 -0
- package/docs/help/markdown.md +165 -0
- package/examples/App.vue +21 -0
- package/examples/assets/css/map-base.scss +333 -0
- package/examples/assets/fonts/pmzd.ttf +0 -0
- package/examples/assets/icons/index.js +9 -0
- package/examples/assets/icons/svg/404.svg +1 -0
- package/examples/assets/icons/svg/bug.svg +1 -0
- package/examples/assets/icons/svg/build.svg +1 -0
- package/examples/assets/icons/svg/button.svg +1 -0
- package/examples/assets/icons/svg/cascader.svg +1 -0
- package/examples/assets/icons/svg/chart.svg +1 -0
- package/examples/assets/icons/svg/checkbox.svg +1 -0
- package/examples/assets/icons/svg/clipboard.svg +1 -0
- package/examples/assets/icons/svg/code.svg +1 -0
- package/examples/assets/icons/svg/color.svg +1 -0
- package/examples/assets/icons/svg/component.svg +1 -0
- package/examples/assets/icons/svg/dashboard.svg +1 -0
- package/examples/assets/icons/svg/date-range.svg +1 -0
- package/examples/assets/icons/svg/date.svg +1 -0
- package/examples/assets/icons/svg/dict.svg +1 -0
- package/examples/assets/icons/svg/documentation.svg +1 -0
- package/examples/assets/icons/svg/download.svg +1 -0
- package/examples/assets/icons/svg/drag.svg +1 -0
- package/examples/assets/icons/svg/druid.svg +1 -0
- package/examples/assets/icons/svg/edit.svg +1 -0
- package/examples/assets/icons/svg/education.svg +1 -0
- package/examples/assets/icons/svg/email.svg +1 -0
- package/examples/assets/icons/svg/example.svg +1 -0
- package/examples/assets/icons/svg/excel.svg +1 -0
- package/examples/assets/icons/svg/exit-fullscreen.svg +1 -0
- package/examples/assets/icons/svg/eye-open.svg +1 -0
- package/examples/assets/icons/svg/eye.svg +1 -0
- package/examples/assets/icons/svg/form.svg +1 -0
- package/examples/assets/icons/svg/fullscreen.svg +1 -0
- package/examples/assets/icons/svg/github.svg +1 -0
- package/examples/assets/icons/svg/guide.svg +1 -0
- package/examples/assets/icons/svg/icon.svg +1 -0
- package/examples/assets/icons/svg/input.svg +1 -0
- package/examples/assets/icons/svg/international.svg +1 -0
- package/examples/assets/icons/svg/job.svg +1 -0
- package/examples/assets/icons/svg/language.svg +1 -0
- package/examples/assets/icons/svg/link.svg +1 -0
- package/examples/assets/icons/svg/list.svg +1 -0
- package/examples/assets/icons/svg/lock.svg +1 -0
- package/examples/assets/icons/svg/log.svg +1 -0
- package/examples/assets/icons/svg/logininfor.svg +1 -0
- package/examples/assets/icons/svg/message.svg +1 -0
- package/examples/assets/icons/svg/money.svg +1 -0
- package/examples/assets/icons/svg/monitor.svg +2 -0
- package/examples/assets/icons/svg/nested.svg +1 -0
- package/examples/assets/icons/svg/number.svg +1 -0
- package/examples/assets/icons/svg/online.svg +1 -0
- package/examples/assets/icons/svg/password.svg +1 -0
- package/examples/assets/icons/svg/pdf.svg +1 -0
- package/examples/assets/icons/svg/people.svg +1 -0
- package/examples/assets/icons/svg/peoples.svg +1 -0
- package/examples/assets/icons/svg/phone.svg +1 -0
- package/examples/assets/icons/svg/post.svg +1 -0
- package/examples/assets/icons/svg/qq.svg +1 -0
- package/examples/assets/icons/svg/question.svg +1 -0
- package/examples/assets/icons/svg/radio.svg +1 -0
- package/examples/assets/icons/svg/rate.svg +1 -0
- package/examples/assets/icons/svg/redis.svg +1 -0
- package/examples/assets/icons/svg/row.svg +1 -0
- package/examples/assets/icons/svg/search.svg +1 -0
- package/examples/assets/icons/svg/select.svg +1 -0
- package/examples/assets/icons/svg/server.svg +1 -0
- package/examples/assets/icons/svg/shopping.svg +1 -0
- package/examples/assets/icons/svg/size.svg +1 -0
- package/examples/assets/icons/svg/skill.svg +1 -0
- package/examples/assets/icons/svg/slider.svg +1 -0
- package/examples/assets/icons/svg/star.svg +1 -0
- package/examples/assets/icons/svg/swagger.svg +1 -0
- package/examples/assets/icons/svg/switch.svg +1 -0
- package/examples/assets/icons/svg/system.svg +2 -0
- package/examples/assets/icons/svg/tab.svg +1 -0
- package/examples/assets/icons/svg/table.svg +1 -0
- package/examples/assets/icons/svg/textarea.svg +1 -0
- package/examples/assets/icons/svg/theme.svg +1 -0
- package/examples/assets/icons/svg/time-range.svg +1 -0
- package/examples/assets/icons/svg/time.svg +1 -0
- package/examples/assets/icons/svg/tool.svg +1 -0
- package/examples/assets/icons/svg/tree-table.svg +1 -0
- package/examples/assets/icons/svg/tree.svg +1 -0
- package/examples/assets/icons/svg/turn-right.svg +1 -0
- package/examples/assets/icons/svg/upload.svg +1 -0
- package/examples/assets/icons/svg/user.svg +1 -0
- package/examples/assets/icons/svg/validCode.svg +1 -0
- package/examples/assets/icons/svg/wechat.svg +1 -0
- package/examples/assets/icons/svg/zip.svg +1 -0
- package/examples/assets/icons/svgo.yml +22 -0
- package/examples/assets/images/close_diago.png +0 -0
- package/examples/assets/images/red_circle.png +0 -0
- package/examples/assets/images/w_mj_map.png +0 -0
- package/examples/assets/images/warehouse_map_popup.png +0 -0
- package/examples/assets/images/warehouse_map_success.png +0 -0
- package/examples/assets/images/warehouse_map_warning.png +0 -0
- package/examples/assets/js/gps.js +222 -0
- package/examples/assets/logo.png +0 -0
- package/examples/components/HelloWorld.vue +273 -0
- package/examples/components/MapPopup.vue +80 -0
- package/examples/data/510000.js +2056 -0
- package/examples/data/510000.json +2055 -0
- package/examples/data/testData.js +2088 -0
- package/examples/main.js +28 -0
- package/examples/utils/echarts/esresize.js +110 -0
- package/jsconfig.json +19 -0
- package/package.json +56 -0
- package/vue-opnelayers/demo.html +1 -0
- package/vue-opnelayers/vue-openlayers.common.js +58661 -0
- package/vue-opnelayers/vue-openlayers.common.js.map +1 -0
- package/vue-opnelayers/vue-openlayers.css +1 -0
- package/vue-opnelayers/vue-openlayers.umd.js +58672 -0
- package/vue-opnelayers/vue-openlayers.umd.js.map +1 -0
- package/vue-opnelayers/vue-openlayers.umd.min.js +2 -0
- package/vue-opnelayers/vue-openlayers.umd.min.js.map +1 -0
- package/vue.config.js +54 -0
@@ -0,0 +1,393 @@
|
|
1
|
+
# ChengYu-cloud部署
|
2
|
+
|
3
|
+
## 环境说明
|
4
|
+
|
5
|
+
JDK: 1.8
|
6
|
+
|
7
|
+
Maven:
|
8
|
+
|
9
|
+
MySql:
|
10
|
+
|
11
|
+
Redis:
|
12
|
+
|
13
|
+
PostgreSQL:
|
14
|
+
|
15
|
+
|
16
|
+
## Archiva Maven
|
17
|
+
|
18
|
+
后台管理地址:http://192.144.227.154:8989
|
19
|
+
|
20
|
+
```
|
21
|
+
账号:admin
|
22
|
+
密码:admin20200202
|
23
|
+
```
|
24
|
+
|
25
|
+
本地maven配置 添加maven仓库连接地址和账号
|
26
|
+
|
27
|
+
```
|
28
|
+
<servers>
|
29
|
+
<server>
|
30
|
+
<id>archiva-releases</id>
|
31
|
+
<username>admin</username>
|
32
|
+
<password>admin20200202</password>
|
33
|
+
</server>
|
34
|
+
<server>
|
35
|
+
<id>archiva-snapshots</id>
|
36
|
+
<username>admin</username>
|
37
|
+
<password>admin20200202</password>
|
38
|
+
</server>
|
39
|
+
</servers>
|
40
|
+
|
41
|
+
<mirrors>
|
42
|
+
<mirror>
|
43
|
+
<id>archiva-releases</id>
|
44
|
+
<mirrorOf>internal</mirrorOf>
|
45
|
+
<url>http://192.144.227.154:8989/repository/internal/</url>
|
46
|
+
</mirror>
|
47
|
+
<mirror>
|
48
|
+
<id>archiva-snapshots</id>
|
49
|
+
<mirrorOf>snapshots</mirrorOf>
|
50
|
+
<url>http://192.144.227.154:8989/repository/snapshots/</url>
|
51
|
+
</mirror>
|
52
|
+
</mirrors>
|
53
|
+
|
54
|
+
<profiles>
|
55
|
+
<profile>
|
56
|
+
<activation>
|
57
|
+
<activeByDefault>true</activeByDefault>
|
58
|
+
</activation>
|
59
|
+
<repositories>
|
60
|
+
<repository>
|
61
|
+
<id>internal</id>
|
62
|
+
<name>Archiva Managed Internal Repository</name>
|
63
|
+
<url>http://192.144.227.154:8989/repository/internal/</url>
|
64
|
+
<releases>
|
65
|
+
<enabled>true</enabled>
|
66
|
+
</releases>
|
67
|
+
<snapshots>
|
68
|
+
<enabled>false</enabled>
|
69
|
+
</snapshots>
|
70
|
+
</repository>
|
71
|
+
<repository>
|
72
|
+
<id>snapshots</id>
|
73
|
+
<name>Archiva Managed Snapshots Repository</name>
|
74
|
+
<url>http://192.144.227.154:8989/repository/snapshots/</url>
|
75
|
+
<releases>
|
76
|
+
<enabled>false</enabled>
|
77
|
+
</releases>
|
78
|
+
<snapshots>
|
79
|
+
<enabled>true</enabled>
|
80
|
+
</snapshots>
|
81
|
+
</repository>
|
82
|
+
</repositories>
|
83
|
+
</profile>
|
84
|
+
</profiles>
|
85
|
+
```
|
86
|
+
|
87
|
+
pom.xml配置
|
88
|
+
|
89
|
+
```
|
90
|
+
<distributionManagement>
|
91
|
+
<repository>
|
92
|
+
<id>archiva-releases</id>
|
93
|
+
<url>http://192.144.227.154:8989/repository/internal/</url>
|
94
|
+
</repository>
|
95
|
+
<snapshotRepository>
|
96
|
+
<id>archiva-snapshots</id>
|
97
|
+
<url>http://192.144.227.154:8989/repository/snapshots/</url>
|
98
|
+
</snapshotRepository>
|
99
|
+
</distributionManagement>
|
100
|
+
|
101
|
+
```
|
102
|
+
|
103
|
+
![ ](../.vuepress/public/images/7F8296FF-4A75-4013-BBFC-D482BF5303FF.png)
|
104
|
+
|
105
|
+
## docker
|
106
|
+
### docker安装
|
107
|
+
|
108
|
+
采用方式:升级系统为Windows 10 专业版
|
109
|
+
|
110
|
+
```
|
111
|
+
1.更新Windows为最新版本
|
112
|
+
2.升级Windows为专业版
|
113
|
+
```
|
114
|
+
|
115
|
+
安装:安装[docker官网](https://www.docker.com/)
|
116
|
+
|
117
|
+
环境配置:控制面板\程序\程序和功能\启用或关闭Windows功能\勾选Hyper-V 重启生效
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
### docker软件安装
|
122
|
+
|
123
|
+
#### 1.mySQL安装
|
124
|
+
|
125
|
+
拉取官方的最新版本的镜像 [MySQL 镜像库地址](https://hub.docker.com/_/mysql?tab=tags):
|
126
|
+
|
127
|
+
```
|
128
|
+
docker pull mysql:latest
|
129
|
+
```
|
130
|
+
|
131
|
+
##### 2.查看本地镜像
|
132
|
+
|
133
|
+
查看是否已安装了 mysql:
|
134
|
+
|
135
|
+
```
|
136
|
+
docker images
|
137
|
+
```
|
138
|
+
![ ](../.vuepress/public/images/mysql_images.jpg)
|
139
|
+
##### 3.运行容器
|
140
|
+
|
141
|
+
```
|
142
|
+
docker run -itd --name mysql-test -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 47.111.253.18:5000/mysql
|
143
|
+
```
|
144
|
+
|
145
|
+
- **-p 3306:3306** :映射容器服务的 3306 端口到宿主机的 3306 端口,外部主机可以直接通过 **宿主机ip:3306** 访问到 MySQL 的服务。
|
146
|
+
- **MYSQL_ROOT_PASSWORD=123456**:设置 MySQL 服务 root 用户的密码
|
147
|
+
|
148
|
+
##### 5.安装成功
|
149
|
+
|
150
|
+
查看是否安装成功
|
151
|
+
|
152
|
+
```
|
153
|
+
docker ps
|
154
|
+
```
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
#### 2、nacos安装
|
159
|
+
|
160
|
+
##### 1.安装nacos
|
161
|
+
|
162
|
+
nacos的环境搭建,参考[官方文档](https://nacos.io/zh-cn/docs/quick-start-docker.html)
|
163
|
+
|
164
|
+
```
|
165
|
+
docker pull nacos/nacos-server
|
166
|
+
```
|
167
|
+
|
168
|
+
##### 2.启动nacos
|
169
|
+
|
170
|
+
```
|
171
|
+
docker run --env MODE=standalone --name nacos -d -p 8848:8848 47.111.253.18:5000/nacos/nacos-server
|
172
|
+
```
|
173
|
+
|
174
|
+
##### 3.查看nacos服务
|
175
|
+
|
176
|
+
地址:http://localhost:8848/nacos
|
177
|
+
用户名密码:nacos/nacos
|
178
|
+
![ ](../.vuepress/public/images/nacos.jpg)
|
179
|
+
|
180
|
+
##### 4.导入nacos数据库
|
181
|
+
|
182
|
+
https://gitee.com/jeecg/jeecg-boot/blob/master/jeecg-boot/db/tables_nacos.sql
|
183
|
+
|
184
|
+
##### 5.nacos连接mysql
|
185
|
+
|
186
|
+
查看docker中mySQL **IPAddress** 地址
|
187
|
+
|
188
|
+
```json
|
189
|
+
docker inspect mysql容器ID
|
190
|
+
docker exec -it nacos容器ID bash
|
191
|
+
cd conf
|
192
|
+
vi application.properties
|
193
|
+
修改nacos连接mysql
|
194
|
+
```
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
#### 3.redis安装
|
199
|
+
|
200
|
+
##### 1.拉取 redis 镜像
|
201
|
+
|
202
|
+
拉取官方的最新版本的镜像 [redis官网](https://redis.io/):
|
203
|
+
|
204
|
+
```
|
205
|
+
docker pull redis:latest
|
206
|
+
```
|
207
|
+
|
208
|
+
##### 2.查看本地镜像
|
209
|
+
|
210
|
+
查看是否已安装了 redis:
|
211
|
+
|
212
|
+
```
|
213
|
+
docker images
|
214
|
+
```
|
215
|
+
![ ](../.vuepress/public/images/redis_images.jpg)
|
216
|
+
|
217
|
+
##### 3.运行容器
|
218
|
+
|
219
|
+
```
|
220
|
+
docker run -itd --name redis-test -p 6379:6379 redis
|
221
|
+
```
|
222
|
+
|
223
|
+
- **-p 6379:6379**:映射容器服务的 6379 端口到宿主机的 6379 端口。外部可以直接通过宿主机ip:6379 访问到 Redis 的服务。
|
224
|
+
|
225
|
+
##### 5.安装成功
|
226
|
+
|
227
|
+
查看是否安装成功
|
228
|
+
|
229
|
+
```
|
230
|
+
docker ps
|
231
|
+
```
|
232
|
+
|
233
|
+
### Dockerfile镜像制作
|
234
|
+
|
235
|
+
```dockerfile
|
236
|
+
FROM anapsix/alpine-java:8_server-jre_unlimited
|
237
|
+
|
238
|
+
MAINTAINER ifyang@11.com
|
239
|
+
|
240
|
+
RUN ln -sf /usr/epqqmanage/deploy /etc/localtime
|
241
|
+
|
242
|
+
RUN mkdir -p /sys-gate
|
243
|
+
|
244
|
+
WORKDIR /sys-gate
|
245
|
+
|
246
|
+
EXPOSE 9002
|
247
|
+
|
248
|
+
ADD ./target/sys-gate.jar ./
|
249
|
+
|
250
|
+
CMD java -Djava.security.egd=file:/dev/./urandom -jar sys-gate.jar
|
251
|
+
|
252
|
+
```
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
### docker-compose镜像制作
|
257
|
+
|
258
|
+
```java
|
259
|
+
version: '2'
|
260
|
+
services:
|
261
|
+
sys-center:
|
262
|
+
build:
|
263
|
+
context: ./sys-center
|
264
|
+
restart: always
|
265
|
+
ports:
|
266
|
+
- 8761:8761
|
267
|
+
container_name: sys-center
|
268
|
+
hostname: sys-center
|
269
|
+
image: sys-center
|
270
|
+
|
271
|
+
sys-gate:
|
272
|
+
build:
|
273
|
+
context: ./sys-gate
|
274
|
+
restart: always
|
275
|
+
ports:
|
276
|
+
- 9002:9002
|
277
|
+
container_name: sys-gate
|
278
|
+
hostname: sys-gate
|
279
|
+
image: sys-gate
|
280
|
+
|
281
|
+
sysmanage:
|
282
|
+
build:
|
283
|
+
context: ./sysmanage
|
284
|
+
restart: always
|
285
|
+
ports:
|
286
|
+
- 8012:8012
|
287
|
+
container_name: sysmanage
|
288
|
+
hostname: sysmanage
|
289
|
+
image: sysmanage
|
290
|
+
|
291
|
+
# bz-basedata:
|
292
|
+
# build:
|
293
|
+
# context: ./bz-basedata
|
294
|
+
# restart: always
|
295
|
+
# ports:
|
296
|
+
# - 8945:8945
|
297
|
+
# container_name: bz-basedata
|
298
|
+
# hostname: bz-basedata
|
299
|
+
# image: bz-basedata
|
300
|
+
#
|
301
|
+
# bz-device:
|
302
|
+
# build:
|
303
|
+
# context: ./bz-device
|
304
|
+
# restart: always
|
305
|
+
# ports:
|
306
|
+
# - 8924:8924
|
307
|
+
# container_name: bz-device
|
308
|
+
# hostname: bz-device
|
309
|
+
# image: bz-device
|
310
|
+
#
|
311
|
+
# bz-maintain:
|
312
|
+
# build:
|
313
|
+
# context: ./bz-maintain
|
314
|
+
# restart: always
|
315
|
+
# ports:
|
316
|
+
# - 8765:8765
|
317
|
+
# container_name: bz-maintain
|
318
|
+
# hostname: bz-maintain
|
319
|
+
# image: bz-maintain
|
320
|
+
|
321
|
+
```
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
### docker仓库搭建与使用
|
326
|
+
|
327
|
+
##### 1.仓库搭建
|
328
|
+
|
329
|
+
```
|
330
|
+
# 1.获取私有仓库镜像
|
331
|
+
docker pull registry:2
|
332
|
+
|
333
|
+
# 2.运行镜像仓库
|
334
|
+
docker run -d -v /opt/registry:/var/lib/registry -p 5000:5000 --name myregistry registry:2
|
335
|
+
|
336
|
+
# 3.验证仓库是否运行
|
337
|
+
http://127.0.0.1:5000/v2
|
338
|
+
|
339
|
+
```
|
340
|
+
|
341
|
+
##### 2.仓库使用
|
342
|
+
|
343
|
+
```
|
344
|
+
# 通过docker tag将镜像标志为要推送到私有仓库
|
345
|
+
|
346
|
+
docker tag mysql:latest 47.111.253.18:5000/mysql:latest
|
347
|
+
|
348
|
+
# 通过 docker push 命令将 mysql 镜像 push到私有仓库中
|
349
|
+
docker push 47.111.253.18:5000/mysql:latest
|
350
|
+
|
351
|
+
# 查看上传得镜像
|
352
|
+
http://47.111.253.18:5000/v2/_catalog
|
353
|
+
|
354
|
+
# 从私有仓库获取应用
|
355
|
+
docker pull 47.111.253.18:5000/mysql:latest
|
356
|
+
|
357
|
+
```
|
358
|
+
|
359
|
+
##### 3.harbor管理器
|
360
|
+
|
361
|
+
```
|
362
|
+
待完善
|
363
|
+
```
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
##### 参考文档地址
|
368
|
+
|
369
|
+
docker搭建 https://www.cnblogs.com/huanchupkblog/p/10843800.html
|
370
|
+
|
371
|
+
####
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
## postgres搭建
|
376
|
+
|
377
|
+
postgres搭建参考[官方文档](https://www.postgresql.org/)
|
378
|
+
|
379
|
+
其它参考文档:https://www.cnblogs.com/mingfan/p/12332506.html
|
380
|
+
|
381
|
+
postgres设置参考文档:https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-16-04
|
382
|
+
|
383
|
+
https://blog.csdn.net/weixin_42404521/article/details/115870366
|
384
|
+
|
385
|
+
拉取最新postgres
|
386
|
+
|
387
|
+
docker pull postgres:latest
|
388
|
+
|
389
|
+
docker中启动
|
390
|
+
|
391
|
+
```
|
392
|
+
docker run --name dkpostgres -e POSTGRES_PASSWORD=elec2021 -p 5432:5432 -v pgdata:/var/lib/postgresql/data -d 47.111.253.18:5000/dkpostgres:latest
|
393
|
+
```
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# gateway路由配置使用说明
|
2
|
+
|
3
|
+
### gateway是什么?
|
4
|
+
|
5
|
+
该项目提供了一个库,用于在 Spring WebFlux 之上构建 API 网关。Spring Cloud Gateway 旨在提供一种简单而有效的方式来路由到 API,并为它们提供横切关注点,例如:安全性、监控/指标和弹性。
|
6
|
+
|
7
|
+
### 特点
|
8
|
+
|
9
|
+
基于 Spring Framework 5、Project Reactor 和 Spring Boot 2.0 构建。
|
10
|
+
能够匹配任何请求属性的路由。
|
11
|
+
谓词和过滤器特定于路由。
|
12
|
+
断路器集成。
|
13
|
+
Spring Cloud Discovery客户端集成。
|
14
|
+
易于编写谓词和过滤器。
|
15
|
+
请求速率限制。
|
16
|
+
路径重写。
|
17
|
+
|
18
|
+
------
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
ChengYu-cloud路由配置
|
23
|
+
|
24
|
+
```json
|
25
|
+
[{
|
26
|
+
"id": "mqsf-externalService",
|
27
|
+
"order": 0,
|
28
|
+
"predicates": [{
|
29
|
+
"name": "Path",
|
30
|
+
"args": {
|
31
|
+
"pattern": "/mqsf-externalService/**" }
|
32
|
+
}],
|
33
|
+
"filters": [],
|
34
|
+
"uri": "lb://mqsf-externalService"
|
35
|
+
}
|
36
|
+
]
|
37
|
+
```
|
38
|
+
Nacos中动态配置
|
39
|
+
|
40
|
+
![ ](../.vuepress/public/images/gateway.jpg)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# 熔断降级限流 hystirx
|
2
|
+
|
3
|
+
## Hystrix提供的能力
|
4
|
+
|
5
|
+
hystrix的出现即为解决雪崩效应,它通过四个方面的机制来解决这个问题
|
6
|
+
|
7
|
+
- 隔离(线程池隔离和信号量隔离):限制调用分布式服务的资源使用,某一个调用的服务出现问题不会影响其他服务调用。
|
8
|
+
|
9
|
+
- 优雅的降级机制:超时降级、资源不足时(线程或信号量)降级,降级后可以配合降级接口返回托底数据。
|
10
|
+
|
11
|
+
- 熔断:当失败率达到阀值自动触发降级(如因网络故障/超时造成的失败率高),熔断器触发的快速失败会进行快速恢复。
|
12
|
+
|
13
|
+
- 缓存:提供了请求缓存、请求合并实现。
|
14
|
+
|
15
|
+
- 支持实时监控、报警、控制
|
16
|
+
|
17
|
+
------
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
更多请查阅Hystrix[官方文档](https://github.com/Netflix/Hystrix/tree/master/hystrix-contrib/hystrix-javanica)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# docker 说明
|
2
|
+
|
3
|
+
Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的[Linux](https://baike.baidu.com/item/Linux)或Windows操作系统的机器上,也可以实现虚拟化,容器是完全使用沙箱机制,相互之间不会有任何接口。
|
4
|
+
|
5
|
+
一个完整的Docker有以下几个部分组成:
|
6
|
+
|
7
|
+
1. DockerClient客户端
|
8
|
+
2. Docker Daemon守护进程
|
9
|
+
3. Docker Image镜像
|
10
|
+
4. DockerContainer容器
|
11
|
+
|
12
|
+
更多请查阅 [docker](https://www.docker.com/)
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# RabbitMq集成说明
|
2
|
+
|
3
|
+
**RabbitMQ**是实现了高级消息队列协议(AMQP)的开源消息代理软件(亦称面向消息的中间件)。RabbitMQ服务器是用[Erlang](https://baike.baidu.com/item/Erlang)语言编写的,而群集和故障转移是构建在[开放电信平台](https://baike.baidu.com/item/开放电信平台)框架上的。所有主要的编程语言均有与代理接口通讯的客户端[库](https://baike.baidu.com/item/库)。
|
4
|
+
|
5
|
+
更多请查阅rabbitmq[官方文档](https://www.rabbitmq.com/)
|
6
|
+
|
7
|
+
------
|
8
|
+
|
9
|
+
#rabbitmq服务访问(guest/guest)
|
10
|
+
|
11
|
+
http://127.0.0.1:15672
|
12
|
+
|
13
|
+
guest/guest
|
14
|
+
|
15
|
+
![ ](../.vuepress/public/images/rabbitmq.jpg)
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# 链路跟踪 skywarking
|
2
|
+
|
3
|
+
**背景:**
|
4
|
+
|
5
|
+
微服务架构是通过业务来划分服务的,使用 REST 调用。对外暴露的一个接口,可能需要很多个服务协同才能完成这个接口功能,如果链路上任何一个服务出现问题或者网络超时,都会形成导致接口调用失败。为了在发生故障的时候,能够快速定位和解决问题,需要使用SkyWalking
|
6
|
+
|
7
|
+
------
|
8
|
+
|
9
|
+
**环境:**
|
10
|
+
windows
|
11
|
+
JDK8
|
12
|
+
|
13
|
+
------
|
14
|
+
|
15
|
+
**开发工具:**
|
16
|
+
idea
|
17
|
+
|
18
|
+
------
|
19
|
+
|
20
|
+
**软件安装:**
|
21
|
+
1.[下载elasticsearch7](http://doc.cloud.jeecg.com/[https://www.elastic.co/cn/downloads/elasticsearch](https://www.elastic.co/cn/downloads/elasticsearch))
|
22
|
+
2.解压 运行bin/elasticsearch.bat
|
23
|
+
3.访问 `localhost:9200` 如下结果表示OK
|
24
|
+
|
25
|
+
```json
|
26
|
+
{
|
27
|
+
"name" : "xxxx",
|
28
|
+
"cluster_name" : "elasticsearch",
|
29
|
+
"cluster_uuid" : "xxxx",
|
30
|
+
"version" : {
|
31
|
+
"number" : "7.7.1",
|
32
|
+
"build_flavor" : "default",
|
33
|
+
"build_type" : "zip",
|
34
|
+
"build_hash" : "xxxxx",
|
35
|
+
"build_date" : "2020-05-28T16:30:01.040088Z",
|
36
|
+
"build_snapshot" : false,
|
37
|
+
"lucene_version" : "8.5.1",
|
38
|
+
"minimum_wire_compatibility_version" : "6.8.0",
|
39
|
+
"minimum_index_compatibility_version" : "6.0.0-beta1"
|
40
|
+
},
|
41
|
+
"tagline" : "You Know, for Search"
|
42
|
+
}
|
43
|
+
```
|
44
|
+
|
45
|
+
4.[下载skywarking](http://doc.cloud.jeecg.com/[http://skywalking.apache.org/downloads/](http://skywalking.apache.org/downloads/))
|
46
|
+
|
47
|
+
5.解压 运行 bin/startup.bat,这个时候实际上是启动了两个项目,一个收集器,一个web页面
|
48
|
+
|
49
|
+
6.访问`localhost:8080`,端口号webapp/webapp.yml中可以修改,第一次访问页面空白正常
|
50
|
+
|
51
|
+
7.在项目根目录下创建目录 xyleed-skywarking,并且将skywarking下的agent文件夹直接拷贝至该目录下
|
52
|
+
|
53
|
+
8.配置vm参数
|
54
|
+
|
55
|
+
附上参数代码及描述
|
56
|
+
|
57
|
+
```java
|
58
|
+
-javaagent:D:\JAVA\cloud\jeecg-yanshi\jeecg-skywarking\agent\skywalking-agent.jar
|
59
|
+
-Dskywalking.agent.service_name=jeecg-ys-gateway
|
60
|
+
-Dskywalking.collector.backend_service=localhost:11800
|
61
|
+
```
|
62
|
+
|
63
|
+
| **参数** | 描述 |
|
64
|
+
| ------------ | :---------------------------------------- |
|
65
|
+
| javaagent | 配置 skywalking-agent.jar 的地址,需要修改 |
|
66
|
+
| service_name | 配置 需要监控的服务名,需要修改 |
|
67
|
+
| javaagent | skywalking收集器服务的地址,照抄 |
|
68
|
+
|
69
|
+
------
|
70
|
+
|
71
|
+
9.启动项目,访问接口(多访问几次),再去localhost:8080看面板数据
|
72
|
+
|
73
|
+
10.当我们访问一个服务,而他会调用另一个服务的时候,点击拓扑图会出现下图的效果,这就是链路跟踪的效果
|
74
|
+
|
75
|
+
11.还可以在追踪界面,查看整个请求的具体调用链
|
76
|
+
|
77
|
+
*其他功能需自行摸索*
|
@@ -0,0 +1,120 @@
|
|
1
|
+
# 基础功能
|
2
|
+
|
3
|
+
#### xyleed-basedata
|
4
|
+
|
5
|
+
提供桥梁、隧道、涵洞、路线、路段、服务区、收费站、监控中心等基础数据接口
|
6
|
+
|
7
|
+
```lua
|
8
|
+
save ---保存
|
9
|
+
|
10
|
+
delete ---删除
|
11
|
+
|
12
|
+
update ---更新
|
13
|
+
|
14
|
+
info ---详情
|
15
|
+
|
16
|
+
list ---列表
|
17
|
+
|
18
|
+
orgPermissionsList ---机构权限列表
|
19
|
+
```
|
20
|
+
|
21
|
+
#### xyleed-admin
|
22
|
+
|
23
|
+
提供用户、机构、角色、职务、菜单、字典、分类等数据接口
|
24
|
+
|
25
|
+
```lua
|
26
|
+
save ---保存
|
27
|
+
|
28
|
+
delete ---删除
|
29
|
+
|
30
|
+
update ---更新
|
31
|
+
|
32
|
+
info ---详情
|
33
|
+
|
34
|
+
treeMenuList ---菜单树
|
35
|
+
|
36
|
+
orgPermissionsTreeMenuList ---机构权限菜单树列表
|
37
|
+
|
38
|
+
list ---列表
|
39
|
+
|
40
|
+
orgPermissionsList ---机构权限列表
|
41
|
+
|
42
|
+
```
|
43
|
+
|
44
|
+
#### xyleed-gateway
|
45
|
+
|
46
|
+
网关:白名单、路由转发
|
47
|
+
|
48
|
+
```json
|
49
|
+
[{
|
50
|
+
"id": "mqsf-externalService",
|
51
|
+
"order": 0,
|
52
|
+
"predicates": [{
|
53
|
+
"name": "Path",
|
54
|
+
"args": {
|
55
|
+
"pattern": "/mqsf-externalService/**" }
|
56
|
+
}],
|
57
|
+
"filters": [],
|
58
|
+
"uri": "lb://mqsf-externalService"
|
59
|
+
}
|
60
|
+
]
|
61
|
+
```
|
62
|
+
|
63
|
+
#### xyleed-common
|
64
|
+
|
65
|
+
框架公共模块
|
66
|
+
|
67
|
+
```Prism
|
68
|
+
消息推送(个推、极光)
|
69
|
+
数据库配置
|
70
|
+
工具类
|
71
|
+
```
|
72
|
+
|
73
|
+
#### xyleed-im
|
74
|
+
|
75
|
+
消息服务
|
76
|
+
|
77
|
+
```Prism
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
#### xyleed-resource
|
82
|
+
|
83
|
+
提供文件上传、文件上传权限、文件管理等数据接口
|
84
|
+
|
85
|
+
```Prism
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
#### xyleed-workflow
|
90
|
+
|
91
|
+
工作流
|
92
|
+
|
93
|
+
```Prism
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
#### xyleed-auth
|
98
|
+
|
99
|
+
鉴权中心:提供服务鉴权数据接口
|
100
|
+
|
101
|
+
```Prism
|
102
|
+
|
103
|
+
```
|
104
|
+
|
105
|
+
#### xyleed-search
|
106
|
+
|
107
|
+
全文检索
|
108
|
+
|
109
|
+
```Prism
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
#### xyleed-scheduler
|
114
|
+
|
115
|
+
任务调度
|
116
|
+
|
117
|
+
```Prism
|
118
|
+
|
119
|
+
```
|
120
|
+
|