Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
log-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
log-platform
Commits
f2143450
Commit
f2143450
authored
Feb 26, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
精简pom.xml
parent
ffdd9761
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
511 additions
and
211 deletions
+511
-211
log-manager/pom.xml
log-manager/pom.xml
+17
-148
log-manager/pom.xml.bak
log-manager/pom.xml.bak
+489
-0
log-manager/src/main/bin/deploy.sh
log-manager/src/main/bin/deploy.sh
+4
-2
log-manager/src/main/resources/application.yml
log-manager/src/main/resources/application.yml
+1
-1
log-manager/src/main/resources/bootstrap.yml
log-manager/src/main/resources/bootstrap.yml
+0
-60
No files found.
log-manager/pom.xml
View file @
f2143450
...
...
@@ -23,24 +23,7 @@
<properties>
<profiles.active>
develop
</profiles.active>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://127.0.0.1:3306/log-platform?allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
12345678
</profiles.datasource.password>
<profiles.redis.uri>
127.0.0.1
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password></profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
127.0.0.1
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<profiles.log.level>
DEBUG
</profiles.log.level>
<profiles.log.path>
/logs
</profiles.log.path>
<profiles.data.path>
/data
</profiles.data.path>
<profiles.nacos.server-addr>
127.0.0.1:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
...
...
@@ -52,32 +35,11 @@
<id>
test
</id>
<properties>
<profiles.active>
test
</profiles.active>
<profiles.server.ip>
192.168.0.98
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logservice
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://192.168.0.98:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
192.168.0.252
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
192.168.0.98
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<package.environment>
test
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
...
...
@@ -86,32 +48,11 @@
<id>
product
</id>
<properties>
<profiles.active>
product
</profiles.active>
<profiles.server.ip>
192.168.0.250
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logService
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://127.0.0.1:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
127.0.0.1
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
192.168.0.250
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.nacos.server-addr>
127.0.0.1:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<package.environment>
build
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
...
...
@@ -121,32 +62,11 @@
<id>
yibin
</id>
<properties>
<profiles.active>
yibin
</profiles.active>
<profiles.server.ip>
192.168.2.144
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logService
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://172.15.28.121:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
172.15.28.120
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
172.15.28.117
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.nacos.server-addr>
172.15.28.120:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<package.environment>
yibin
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
...
...
@@ -156,32 +76,11 @@
<id>
xuanhan
</id>
<properties>
<profiles.active>
yibin
</profiles.active>
<profiles.server.ip>
192.168.2.144
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logService
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://127.0.0.1:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
127.0.0.1
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
127.0.0.1
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.nacos.server-addr>
127.0.0.1:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
D:/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
D:/mortals/app/data
</profiles.filepath>
<package.environment>
yibin
</package.environment>
<skipDeploy>
true
</skipDeploy>
</properties>
...
...
@@ -191,32 +90,11 @@
<id>
reg
</id>
<properties>
<profiles.active>
reg
</profiles.active>
<profiles.server.ip>
127.0.0.1
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logService
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://10.207.153.68:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
10.207.153.68
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
127.0.0.1
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.nacos.server-addr>
127.0.0.1:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<package.environment>
build
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
...
...
@@ -226,32 +104,23 @@
<id>
yanyuan
</id>
<properties>
<profiles.active>
yanyuan
</profiles.active>
<profiles.server.ip>
127.0.0.1
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logService
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://172.16.30.249:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
172.16.30.248
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
172.16.30.245
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.nacos.server-addr>
172.16.30.245:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<package.environment>
build
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
</profile>
<profile>
<id>
pengxi
</id>
<properties>
<profiles.active>
pengxi
</profiles.active>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<profiles.nacos.server-addr>
192.168.106.6:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<package.environment>
build
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
...
...
log-manager/pom.xml.bak
0 → 100644
View file @
f2143450
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
log-manager
</artifactId>
<packaging>
jar
</packaging>
<description>
日志管理平台
</description>
<parent>
<groupId>
com.mortals.xhx
</groupId>
<artifactId>
log-platform
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
</parent>
<profiles>
<profile>
<id>
develop
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<profiles.active>
develop
</profiles.active>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://127.0.0.1:3306/log-platform?allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
12345678
</profiles.datasource.password>
<profiles.redis.uri>
127.0.0.1
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password></profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
127.0.0.1
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<profiles.log.level>
DEBUG
</profiles.log.level>
<profiles.log.path>
/logs
</profiles.log.path>
<profiles.data.path>
/data
</profiles.data.path>
<profiles.nacos.server-addr>
127.0.0.1:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<package.environment>
build
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
</profile>
<profile>
<id>
test
</id>
<properties>
<profiles.active>
test
</profiles.active>
<profiles.server.ip>
192.168.0.98
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logservice
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://192.168.0.98:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
192.168.0.252
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
192.168.0.98
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<package.environment>
test
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
</profile>
<profile>
<id>
product
</id>
<properties>
<profiles.active>
product
</profiles.active>
<profiles.server.ip>
192.168.0.250
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logService
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://127.0.0.1:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
127.0.0.1
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
192.168.0.250
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.nacos.server-addr>
127.0.0.1:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<package.environment>
build
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
</profile>
<profile>
<id>
yibin
</id>
<properties>
<profiles.active>
yibin
</profiles.active>
<profiles.server.ip>
192.168.2.144
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logService
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://172.15.28.121:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
172.15.28.120
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
172.15.28.117
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.nacos.server-addr>
172.15.28.120:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<package.environment>
yibin
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
</profile>
<profile>
<id>
xuanhan
</id>
<properties>
<profiles.active>
yibin
</profiles.active>
<profiles.server.ip>
192.168.2.144
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logService
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://127.0.0.1:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
127.0.0.1
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
127.0.0.1
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.nacos.server-addr>
127.0.0.1:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
D:/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
D:/mortals/app/data
</profiles.filepath>
<package.environment>
yibin
</package.environment>
<skipDeploy>
true
</skipDeploy>
</properties>
</profile>
<profile>
<id>
reg
</id>
<properties>
<profiles.active>
reg
</profiles.active>
<profiles.server.ip>
127.0.0.1
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logService
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://10.207.153.68:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
10.207.153.68
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
127.0.0.1
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.nacos.server-addr>
127.0.0.1:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<package.environment>
build
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
</profile>
<profile>
<id>
yanyuan
</id>
<properties>
<profiles.active>
yanyuan
</profiles.active>
<profiles.server.ip>
127.0.0.1
</profiles.server.ip>
<profiles.server.port>
18225
</profiles.server.port>
<profiles.nginx.port>
11092
</profiles.nginx.port>
<profiles.server.gatewayport>
11078
</profiles.server.gatewayport>
<profiles.server.path>
/logService
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://172.16.30.249:3306/log-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.redis.uri>
172.16.30.248
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
9
</profiles.redis.database>
<profiles.rabbitmq.host>
172.16.30.245
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.nacos.server-addr>
172.16.30.245:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<package.environment>
build
</package.environment>
<skipDeploy>
false
</skipDeploy>
</properties>
</profile>
</profiles>
<properties>
</properties>
<dependencies>
<dependency>
<groupId>
com.mortals.xhx
</groupId>
<artifactId>
common-lib
</artifactId>
</dependency>
<!-- 引入 SpringMVC 相关依赖,并实现对其的自动配置 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<!-- 实现对 RabbitMQ 的自动化配置 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-amqp
</artifactId>
</dependency>
<!--
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
</dependency>
-->
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-websocket
</artifactId>
<version>
2.5.2
</version>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-redis
</artifactId>
</dependency>
<!--Token生成与解析-->
<dependency>
<groupId>
io.jsonwebtoken
</groupId>
<artifactId>
jjwt
</artifactId>
</dependency>
<dependency>
<groupId>
p6spy
</groupId>
<artifactId>
p6spy
</artifactId>
<version>
3.9.1
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
${java.version}
</source>
<target>
${java.version}
</target>
<encoding>
${project.build.sourceEncoding}
</encoding>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-resources-plugin
</artifactId>
<executions>
<execution>
<id>
copy-bin
</id>
<phase>
package
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<encoding>
UTF-8
</encoding>
<outputDirectory>
target/bin
</outputDirectory>
<resources>
<resource>
<directory>
src/main/bin/
</directory>
<excludes>
<exclude>
deploy.sh
</exclude>
</excludes>
<filtering>
true
</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>
copy-deploy
</id>
<phase>
package
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<encoding>
UTF-8
</encoding>
<outputDirectory>
${project.parent.basedir}/dist/${project.artifactId}/
</outputDirectory>
<resources>
<resource>
<directory>
src/main/bin
</directory>
<includes>
<include>
deploy.sh
</include>
</includes>
<filtering>
true
</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
exec-maven-plugin
</artifactId>
<version>
1.6.0
</version>
<configuration>
<skip>
${skipDeploy}
</skip>
</configuration>
<executions>
<execution>
<id>
exec-npm-install
</id>
<phase>
generate-resources
</phase>
<goals>
<goal>
exec
</goal>
</goals>
<configuration>
<executable>
yarn
</executable>
<arguments>
<argument></argument>
</arguments>
<workingDirectory>
${project.parent.basedir}/log-manager-ui/admin
</workingDirectory>
</configuration>
</execution>
<execution>
<id>
exec-npm-run-build
</id>
<phase>
generate-resources
</phase>
<goals>
<goal>
exec
</goal>
</goals>
<configuration>
<executable>
yarn
</executable>
<arguments>
<argument>
run
</argument>
<arguments>
${package.environment}
</arguments>
</arguments>
<workingDirectory>
${project.parent.basedir}/log-manager-ui/admin
</workingDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>
maven-assembly-plugin
</artifactId>
<version>
3.3.0
</version>
<executions>
<execution>
<id>
make-assembly
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
<configuration>
<finalName>
${project.artifactId}
</finalName>
<appendAssemblyId>
false
</appendAssemblyId>
<descriptors>
<descriptor>
../assembly/assembly.xml
</descriptor>
</descriptors>
<outputDirectory>
${project.parent.basedir}/dist/${project.artifactId}
</outputDirectory>
</configuration>
</execution>
<execution>
<id>
make-assembly-ui
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
<configuration>
<skipAssembly>
${skipDeploy}
</skipAssembly>
<finalName>
${project.artifactId}-ui
</finalName>
<appendAssemblyId>
false
</appendAssemblyId>
<descriptors>
<descriptor>
../assembly/assembly-manager-ui.xml
</descriptor>
</descriptors>
<outputDirectory>
${project.parent.basedir}/dist/${project.artifactId}
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
log-manager/src/main/bin/deploy.sh
View file @
f2143450
...
...
@@ -14,7 +14,7 @@ SHELL_LOG="${BASEDIR}/${SHELL_NAME}.log"
JAVA_HOME
=
"/usr/local/java/jdk1.8"
SERVICE_PATH
=
"/usr/lib/systemd/system"
PUBLISH_PATH
=
"
@profiles.publish.path@
"
PUBLISH_PATH
=
"
/home/publish
"
PROJECT_NAME
=
"@project.artifactId@"
PROJECT_EXECPATH
=
"
${
PUBLISH_PATH
}
/
${
PROJECT_NAME
}
"
...
...
@@ -73,7 +73,9 @@ start_service() {
systemctl
enable
${
PROJECT_NAME
}
systemctl daemon-reload
writelog
"
${
PROJECT_NAME
}
服务启动..."
systemctl stop
${
PROJECT_NAME
}
&&
systemctl start
${
PROJECT_NAME
}
systemctl stop
${
PROJECT_NAME
}
sleep
5
systemctl start
${
PROJECT_NAME
}
project_status
=
$(
systemctl status
"
${
PROJECT_NAME
}
"
|grep Active |awk
'{print $2}'
)
jcpid
=
$(
ps
-ef
|
grep
-v
"grep"
|
grep
"
${
PROJECT_NAME
}
"
|
awk
'{print $2}'
)
writelog
"
${
PROJECT_NAME
}
服务启动,PID is
${
jcpid
}
,status:
${
project_status
}
"
...
...
log-manager/src/main/resources/application.yml
View file @
f2143450
...
...
@@ -3,7 +3,7 @@ spring:
allow-bean-definition-overriding
:
true
application
:
log
:
level
:
@
profiles.log.level@
level
:
info
path
:
@
profiles.log.path@
log-manager/src/main/resources/bootstrap.yml
View file @
f2143450
...
...
@@ -15,18 +15,6 @@ spring:
serialization
:
WRITE_DATES_AS_TIMESTAMPS
:
true
default-property-inclusion
:
NON_NULL
redis
:
host
:
@
profiles.redis.uri@
port
:
@
profiles.redis.port@
username
:
@
profiles.redis.username@
password
:
@
profiles.redis.password@
database
:
@
profiles.redis.database@
timeout
:
30000
pool
:
max-idle
:
30
min-idle
:
0
max-active
:
100
max-wait
:
1000
cloud
:
loadbalancer
:
ribbon
:
...
...
@@ -42,55 +30,9 @@ spring:
group
:
${spring.cloud.nacos.discovery.group}
namespace
:
${spring.cloud.nacos.discovery.namespace}
# Nacos 命名空间 dev 的编号
file-extension
:
yaml
rabbitmq
:
host
:
@
profiles.rabbitmq.host@
port
:
@
profiles.rabbitmq.port@
username
:
@
profiles.rabbitmq.username@
password
:
@
profiles.rabbitmq.password@
virtualHost
:
@
profiles.rabbitmq.virtualhost@
dao
:
exceptiontranslation
:
enabled
:
false
datasource
:
druid
:
# 连接池初始化时创建的连接数
initialSize
:
5
# 连接池中最大连接数
maxActive
:
50
# 连接池中最小空闲连接数
minIdle
:
5
maxWait
:
3000
validationQuery
:
SELECT
1
validationQueryTimeout
:
1000
testWhileIdle
:
true
testOnBorrow
:
false
timeBetweenEvictionRunsMillis
:
60000
minEvictableIdleTimeMillis
:
300000
# 连接池
hikari
:
#连接池名
pool-name
:
DateHikariCP
#最小空闲连接数
minimum-idle
:
5
# 空闲连接存活最大时间,默认600000(10分钟)
idle-timeout
:
180000
# 连接池最大连接数,默认是10
maximum-pool-size
:
50
# 此属性控制从池返回的连接的默认自动提交行为,默认值:true
auto-commit
:
true
# 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
max-lifetime
:
1800000
# 数据库连接超时时间,默认30秒,即30000
connection-timeout
:
30000
connection-test-query
:
SELECT
1
#type: com.alibaba.druid.pool.DruidDataSource
type
:
com.zaxxer.hikari.HikariDataSource
#driver-class-name: com.p6spy.engine.spy.P6SpyDriver
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
@
profiles.datasource.uri@
username
:
@
profiles.datasource.username@
password
:
@
profiles.datasource.password@
mybatis
:
root-path
:
com.mortals
type-aliases-package
:
com.mortals.framework.model,com.mortals.xhx.common.**.model,com.mortals.xhx.**.model
...
...
@@ -105,7 +47,5 @@ application:
deviceInitApiPath
:
/api/deviceInit
deviceUpdateApiPath
:
/api/deviceUpdate
upload
:
path
:
@
profiles.filepath@
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment