Commit fe761a80a1b56e0ff1736f3f3d660e73a13e69b0

Authored by Liu Haoyu
1 parent f1d1834f

配置文件由39修改到117上;

src/main/java/com/objecteye/utils/LinuxUtils.java
@@ -30,13 +30,13 @@ public class LinuxUtils { @@ -30,13 +30,13 @@ public class LinuxUtils {
30 process = run.exec(cmdList); 30 process = run.exec(cmdList);
31 } 31 }
32 if (log.isDebugEnabled()) { 32 if (log.isDebugEnabled()) {
33 - log.debug("OccupationOfBasicResourcesServiceImpl|executeLinuxCmd|cmd: {}", cmd); 33 + log.debug("executeLinuxCmd|cmd: {}", cmd);
34 } 34 }
35 String line; 35 String line;
36 BufferedReader stdoutReader = new BufferedReader(new InputStreamReader(process.getInputStream())); 36 BufferedReader stdoutReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
37 while ((line = stdoutReader.readLine()) != null) { 37 while ((line = stdoutReader.readLine()) != null) {
38 if (log.isDebugEnabled()) { 38 if (log.isDebugEnabled()) {
39 - log.debug("OccupationOfBasicResourcesServiceImpl|executeLinuxCmd|line: {}", line); 39 + log.debug("executeLinuxCmd|line: {}", line);
40 } 40 }
41 41
42 if (line.contains("command not found") && line.contains("-bash")) { 42 if (line.contains("command not found") && line.contains("-bash")) {
src/main/resources/application-test.yml
1 spring: 1 spring:
2 datasource: 2 datasource:
3 - url: jdbc:mysql://192.168.10.39:3306/sy_vehicle?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai 3 + url: jdbc:mysql://192.168.10.117:3306/sy_vehicle?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
4 username: root 4 username: root
5 password: 123456 5 password: 123456
6 data: 6 data:
7 mongodb: 7 mongodb:
8 - uri: mongodb://192.168.10.39:27017/vehicle 8 + uri: mongodb://vehicle:shiyu2018@192.168.10.117:27017/vehicle
9 servlet: 9 servlet:
10 multipart: 10 multipart:
11 max-file-size: 20MB 11 max-file-size: 20MB
12 max-request-size: 20MB 12 max-request-size: 20MB
13 redis: 13 redis:
14 database: 0 14 database: 0
15 - host: 192.168.10.39 15 + host: 192.168.10.117
16 port: 6379 16 port: 6379
17 jedis: 17 jedis:
18 pool: 18 pool:
src/main/resources/application.yml
@@ -2,10 +2,10 @@ spring: @@ -2,10 +2,10 @@ spring:
2 profiles: 2 profiles:
3 active: test #默认开发环境 3 active: test #默认开发环境
4 rabbitmq: 4 rabbitmq:
5 - host: 192.168.10.39 5 + host: 192.168.10.117
6 port: 5672 6 port: 5672
7 - username: admin  
8 - password: 123456 7 + username: shiyu
  8 + password: shiyu
9 virtualHost: / 9 virtualHost: /
10 10
11 11