Procházet zdrojové kódy

完善部署说明

csg6 před 7 měsíci
rodič
revize
a224dd7e73

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

@@ -6,11 +6,12 @@ spring:
6 6
         druid:
7 7
             # 主库数据源
8 8
             master:
9
-#                url: jdbc:mysql://localhost:3306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
10
-                url: jdbc:mysql://192.168.3.35:3306/shuangkong?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
9
+                url: jdbc:mysql://localhost:3306/double_defense?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
10
+#                url: jdbc:mysql://39.106.66.72: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
11 12
                 username: root
12
-#                password: root
13
-                password: 123456
13
+                password: root
14
+#                password: 123456
14 15
             # 从库数据源
15 16
             slave:
16 17
                 # 从数据源开关/默认关闭
@@ -50,7 +51,7 @@ spring:
50 51
                 url-pattern: /druid/*
51 52
                 # 控制台管理用户名和密码
52 53
                 login-username: ruoyi
53
-                login-password: 123456
54
+                login-password: sk.eitc@6626
54 55
             filter:
55 56
                 stat:
56 57
                     enabled: true

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

@@ -10,9 +10,9 @@ ruoyi:
10 10
   # 实例演示开关
11 11
   demoEnabled: true
12 12
   # 文件路径 文件上传路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
13
-  profile: /opt/app/uploadPath
13
+#  profile: /opt/app/uploadPath
14 14
 #  profile: C:/test/gnhz/shuangkong
15
-#  profile: C:/test/gnhz/shuangkong_linux
15
+  profile: C:/gnhz/shuangkong/uploadPath
16 16
   # 获取ip地址开关
17 17
   addressEnabled: false
18 18
   # 验证码类型 math 数字计算 char 字符验证
@@ -46,7 +46,7 @@ logging:
46 46
 user:
47 47
   password:
48 48
     # 密码最大错误次数
49
-    maxRetryCount: 50
49
+    maxRetryCount: 99999999
50 50
     # 密码锁定时间(默认10分钟)
51 51
     lockTime: 1
52 52
 
@@ -57,14 +57,14 @@ spring:
57 57
     # 国际化资源文件路径
58 58
     basename: i18n/messages
59 59
   profiles:
60
-    active: druid-test
61
-#    active: druid-dev
60
+#    active: druid-test
61
+    active: druid-dev
62 62
   servlet:
63 63
     multipart:
64 64
       # 单个文件大小
65
-      max-file-size: 10MB
65
+      max-file-size: 50MB
66 66
       # 设置总上传的文件大小
67
-      max-request-size: 20MB
67
+      max-request-size: 200MB
68 68
   # 服务模块
69 69
   devtools:
70 70
     restart:
@@ -78,7 +78,7 @@ token:
78 78
   # 令牌密钥
79 79
   secret: abcdefghijklmnopqrstuvwxyz
80 80
   # 令牌有效期(默认30分钟)
81
-  expireTime: 480
81
+  expireTime: 666
82 82
 
83 83
 # MyBatis配置
84 84
 mybatis:

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 16 - 0
RuoYi-Vue-master/RuoYi-Vue-master/sql/表结构和演示数据/新建数据库设置允许远程访问.txt


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

@@ -0,0 +1,43 @@
1
+部署路径及访问地址:
2
+    接口     http://39.106.66.72:8080     部署路径:C:\gnhz\shuangkong\jar
3
+    PC      http://39.106.66.72:8081     部署路径:C:\gnhz\shuangkong\distpc
4
+    APP      http://39.106.66.72:8082    部署路径:C:\gnhz\shuangkong\distapp
5
+
6
+Nginx配置文件
7
+    # 双控PC页面
8
+    server {
9
+        listen       8081;
10
+        server_name  localhost;
11
+        location / {
12
+            # root   /usr/share/nginx/html;
13
+            root   C:\gnhz\shuangkong\distpc;
14
+            index  index.html index.htm;
15
+            try_files $uri $uri/ /index.html;
16
+        }
17
+
18
+        error_page   500 502 503 504  /50x.html;
19
+
20
+        location = /50x.html {
21
+            # root   /usr/share/nginx/html;
22
+            root   C:\gnhz\shuangkong\distpc;
23
+        }
24
+    }
25
+
26
+    # 双控APP页面
27
+    server {
28
+        listen       8082;
29
+        server_name  localhost;
30
+        location / {
31
+            # root   /usr/share/nginx/html;
32
+            root   C:\gnhz\shuangkong\distapp;
33
+            index  index.html index.htm;
34
+            try_files $uri $uri/ /index.html;
35
+        }
36
+
37
+        error_page   500 502 503 504  /50x.html;
38
+
39
+        location = /50x.html {
40
+            # root   /usr/share/nginx/html;
41
+            root   C:\gnhz\shuangkong\distapp;
42
+        }
43
+    }