Browse Source

双控更新数据库链接

csg6 1 month ago
parent
commit
5cba9501ac

+ 2 - 3
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/resources/application-druid-dev.yml

@@ -6,9 +6,8 @@ spring:
6 6
         druid:
7 7
             # 主库数据源
8 8
             master:
9
-                url: jdbc:mysql://39.105.121.97:13306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
10
-#                url: jdbc:mysql://localhost:3306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
11
-#                url: jdbc:mysql://192.168.3.35:3306/shuangkong?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
9
+                url: jdbc:mysql://39.105.121.97:13306/double_defense_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
10
+#                url: jdbc:mysql://127.0.0.1:13306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
12 11
                 username: double_defense_dev
13 12
                 password: Eitc@gnhz702
14 13
 #                password: 123456

+ 2 - 2
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/resources/application-druid-test.yml

@@ -6,8 +6,8 @@ spring:
6 6
         druid:
7 7
             # 主库数据源
8 8
             master:
9
-                url: jdbc:mysql://47.109.88.180:13306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
10
-#                url: jdbc:mysql://localhost:13306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
9
+                url: jdbc:mysql://39.105.121.97:13306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
10
+#                url: jdbc:mysql://127.0.0.1:13306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
11 11
                 username: root
12 12
                 password: eitc@gnhz
13 13
             # 从库数据源

+ 1 - 1
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/resources/application.yml

@@ -21,7 +21,7 @@ ruoyi:
21 21
 # 开发环境配置
22 22
 server:
23 23
   # 服务器的HTTP端口,默认为8080
24
-  port: 28080
24
+  port: 18080
25 25
   servlet:
26 26
     # 应用的访问路径
27 27
     context-path: /

+ 20 - 2
RuoYi-Vue-master/RuoYi-Vue-master/sql/部署/Nginx配置文件.txt

@@ -4,9 +4,27 @@
4 4
     APP      http://39.106.66.72:8082    部署路径:C:\gnhz\shuangkong\distapp
5 5
 
6 6
 Nginx配置文件
7
+    ### 双控JAVA项目
8
+    server {
9
+        listen       18080;
10
+        server_name  localhost;
11
+
12
+        # Load configuration files for the default server block.
13
+        include /etc/nginx/default.d/*.conf;
14
+
15
+       # JAVA接口项目
16
+       location / {
17
+             proxy_pass http://127.0.0.1:28080;  # Java项目的地址
18
+             proxy_set_header Host $host;
19
+             proxy_set_header X-Real-IP $remote_addr;
20
+             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
21
+             proxy_set_header X-Forwarded-Proto $scheme;
22
+        }
23
+    }
24
+
7 25
     # 双控PC页面
8 26
     server {
9
-        listen       8081;
27
+        listen       18081;
10 28
         server_name  localhost;
11 29
         location / {
12 30
             # root   /usr/share/nginx/html;
@@ -25,7 +43,7 @@ Nginx配置文件
25 43
 
26 44
     # 双控APP页面
27 45
     server {
28
-        listen       8082;
46
+        listen       18082;
29 47
         server_name  localhost;
30 48
         location / {
31 49
             # root   /usr/share/nginx/html;