Commit e581fdfa by 袁伟铭

修改配置

parent 123b808a
spring: spring:
profiles:
active: @profiles.active@
cloud: cloud:
config: config:
name: config name: config
profile: @profiles.active@ profile: ${spring.profiles.active}
discovery: discovery:
enabled: true enabled: true
service-id: CONFIG-SERVER service-id: CONFIG-SERVER
uri: http://127.0.0.1:8300/ uri: http://127.0.0.1:8500/
eureka: eureka:
client: client:
......
...@@ -26,11 +26,14 @@ redis.url: 127.0.0.1 ...@@ -26,11 +26,14 @@ redis.url: 127.0.0.1
redis.port: 6379 redis.port: 6379
#数据库源配置 #数据库源配置
#jdbc.driver-class-name: com.mysql.cj.jdbc.Driver
#jdbc.username: root
#jdbc.password: rooT123!321
#jdbc.url: jdbc:mysql://192.168.0.193:3306/mz_big_data?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.driver-class-name: com.mysql.cj.jdbc.Driver jdbc.driver-class-name: com.mysql.cj.jdbc.Driver
jdbc.username: root jdbc.username: root
jdbc.password: rooT123!321 jdbc.password: Dk2019!23456
jdbc.url: jdbc:mysql://192.168.0.193:3306/mz_big_data?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai jdbc.url: jdbc:mysql://47.107.148.253:3306/wine?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
#jwt #jwt
jwt: jwt:
header: Authorization header: Authorization
......
...@@ -9,14 +9,14 @@ PID=$(ps -ef|grep config-client-1.0.0.jar |grep -v grep|awk '{print $2}') ...@@ -9,14 +9,14 @@ PID=$(ps -ef|grep config-client-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8300 > config.log 2>&1 & nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8500 > config.log 2>&1 &
echo "--------------start success-----------" echo "--------------start success-----------"
exit exit
else else
kill -9 ${PID} kill -9 ${PID}
echo "--------------kill success-----------" echo "--------------kill success-----------"
echo "---------------now wait start-------" echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8300 > config.log 2>&1 & nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8500 > config.log 2>&1 &
echo "--------------start success-----------" echo "--------------start success-----------"
exit exit
fi fi
...@@ -23,13 +23,13 @@ echo "--------config start--------" ...@@ -23,13 +23,13 @@ echo "--------config start--------"
PID=$(ps -ef|grep config-client-1.0.0.jar |grep -v grep|awk '{print $2}') PID=$(ps -ef|grep config-client-1.0.0.jar |grep -v grep|awk '{print $2}')
if [ ! $PID ]; then if [ ! $PID ]; then
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8300 > config.log 2>&1 & nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8500 > config.log 2>&1 &
echo "--------------start success-----------" echo "--------------start success-----------"
else else
kill -9 ${PID} kill -9 ${PID}
echo "--------------kill success-----------" echo "--------------kill success-----------"
echo "---------------now wait start-------" echo "---------------now wait start-------"
nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8300 > config.log 2>&1 & nohup java -jar -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms256m -Xmn384m -Xmx512m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC config-client-1.0.0.jar --spring.profiles.active=product --server.port=8500 > config.log 2>&1 &
echo "--------------start success-----------" echo "--------------start success-----------"
fi fi
......
spring: spring:
profiles:
active: @profiles.active@
cloud: cloud:
config: config:
name: config name: config
profile: @profiles.active@ profile: ${spring.profiles.active}
discovery: discovery:
enabled: true enabled: true
service-id: CONFIG-SERVER service-id: CONFIG-SERVER
uri: http://127.0.0.1:8300/ uri: http://127.0.0.1:8500/
eureka: eureka:
client: client:
......
spring: spring:
profiles:
active: @profiles.active@
cloud: cloud:
config: config:
name: config name: config
profile: @profiles.active@ profile: ${spring.profiles.active}
discovery: discovery:
enabled: true enabled: true
service-id: CONFIG-SERVER service-id: CONFIG-SERVER
uri: http://localhost:8500/ uri: http://127.0.0.1:8500/
eureka: eureka:
client: client:
serviceUrl: serviceUrl:
defaultZone: http://admin:123456@localhost:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
spring: spring:
profiles:
active: @profiles.active@
cloud: cloud:
config: config:
name: config name: config
profile: @profiles.active@ profile: ${spring.profiles.active}
discovery: discovery:
enabled: true enabled: true
service-id: CONFIG-SERVER service-id: CONFIG-SERVER
uri: http://127.0.0.1:8300/ uri: http://127.0.0.1:8500/
eureka: eureka:
client: client:
......
spring: spring:
profiles:
active: @profiles.active@
cloud: cloud:
config: config:
name: config name: config
profile: @profiles.active@ profile: ${spring.profiles.active}
discovery: discovery:
enabled: true enabled: true
service-id: CONFIG-SERVER service-id: CONFIG-SERVER
uri: http://127.0.0.1:8300/ uri: http://127.0.0.1:8500/
eureka: eureka:
client: client:
......
spring: spring:
profiles:
active: @profiles.active@
cloud: cloud:
config: config:
name: config name: config
profile: @profiles.active@ profile: ${spring.profiles.active}
discovery: discovery:
enabled: true enabled: true
service-id: CONFIG-SERVER service-id: CONFIG-SERVER
uri: http://localhost:8500/ uri: http://127.0.0.1:8500/
eureka: eureka:
client: client:
serviceUrl: serviceUrl:
defaultZone: http://admin:123456@localhost:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
spring: spring:
profiles:
active: @profiles.active@
cloud: cloud:
config: config:
name: config name: config
profile: @profiles.active@ profile: ${spring.profiles.active}
discovery: discovery:
enabled: true enabled: true
service-id: CONFIG-SERVER service-id: CONFIG-SERVER
uri: http://127.0.0.1:8300/ uri: http://127.0.0.1:8500/
eureka: eureka:
client: client:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment