Commit e581fdfa by 袁伟铭

修改配置

parent 123b808a
spring:
profiles:
active: @profiles.active@
cloud:
config:
name: config
profile: @profiles.active@
profile: ${spring.profiles.active}
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://127.0.0.1:8300/
uri: http://127.0.0.1:8500/
eureka:
client:
......
......@@ -26,11 +26,14 @@ redis.url: 127.0.0.1
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.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.password: Dk2019!23456
jdbc.url: jdbc:mysql://47.107.148.253:3306/wine?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
#jwt
jwt:
header: Authorization
......
......@@ -9,14 +9,14 @@ PID=$(ps -ef|grep config-client-1.0.0.jar |grep -v grep|awk '{print $2}')
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-----------"
exit
else
kill -9 ${PID}
echo "--------------kill success-----------"
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-----------"
exit
fi
......@@ -23,13 +23,13 @@ echo "--------config start--------"
PID=$(ps -ef|grep config-client-1.0.0.jar |grep -v grep|awk '{print $2}')
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-----------"
else
kill -9 ${PID}
echo "--------------kill success-----------"
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-----------"
fi
......
spring:
profiles:
active: @profiles.active@
cloud:
config:
name: config
profile: @profiles.active@
profile: ${spring.profiles.active}
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://127.0.0.1:8300/
uri: http://127.0.0.1:8500/
eureka:
client:
......
spring:
profiles:
active: @profiles.active@
cloud:
config:
name: config
profile: @profiles.active@
profile: ${spring.profiles.active}
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://localhost:8500/
uri: http://127.0.0.1:8500/
eureka:
client:
serviceUrl:
defaultZone: http://admin:123456@localhost:8800/eureka/
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
spring:
profiles:
active: @profiles.active@
cloud:
config:
name: config
profile: @profiles.active@
profile: ${spring.profiles.active}
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://127.0.0.1:8300/
uri: http://127.0.0.1:8500/
eureka:
client:
......
spring:
profiles:
active: @profiles.active@
cloud:
config:
name: config
profile: @profiles.active@
profile: ${spring.profiles.active}
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://127.0.0.1:8300/
uri: http://127.0.0.1:8500/
eureka:
client:
......
spring:
profiles:
active: @profiles.active@
cloud:
config:
name: config
profile: @profiles.active@
profile: ${spring.profiles.active}
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://localhost:8500/
uri: http://127.0.0.1:8500/
eureka:
client:
serviceUrl:
defaultZone: http://admin:123456@localhost:8800/eureka/
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
spring:
profiles:
active: @profiles.active@
cloud:
config:
name: config
profile: @profiles.active@
profile: ${spring.profiles.active}
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://127.0.0.1:8300/
uri: http://127.0.0.1:8500/
eureka:
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