springcloud-mall21/run.sh

38 lines
1.3 KiB
Bash
Raw Normal View History

2018-09-03 17:35:41 +08:00
#!/usr/bin/env bash
mvn clean package
cd eureka-server/target
nohup java -jar eureka-server-0.0.1-SNAPSHOT.jar &
cd ../../config-server/target
nohup java -jar config-server-0.0.1-SNAPSHOT.jar &
cd ../../api-gateway/target
nohup java -jar api-gateway-0.0.1-SNAPSHOT.jar &
cd ../../zipkinserver/target
nohup java -jar zipkin-server-0.0.1-SNAPSHOT.jar &
cd ../../user-service/user-service-core/target
nohup java -jar user-service-core-0.0.1-SNAPSHOT.jar &
cd ../../../score-service/score-service-core/target
nohup java -jar score-service-core-0.0.1-SNAPSHOT.jar &
### java -jar -Xms512m -Xmx512m -XX:PermSize=512M -XX:MaxPermSize=512m ./user-service/user-service-core/target/user-service-core-0.0.1-SNAPSHOT.jar --spring.profiles.active=prod --server.port=6004
###./eureka-server/target/eureka-server-0.0.1-SNAPSHOT.jar
###./config-server/target/config-server-0.0.1-SNAPSHOT.jar
###./zipkinserver/target/zipkin-server-0.0.1-SNAPSHOT.jar
###./order-service/order-service-core/target/order-service-core-0.0.1-SNAPSHOT.jar
###./product-service/product-service-core/target/product-service-core-0.0.1-SNAPSHOT.jar
###./score-service/score-service-core/target/score-service-core-0.0.1-SNAPSHOT.jar
###./user-service/user-service-core/target/user-service-core-0.0.1-SNAPSHOT.jar
###./api-gateway/target/api-gateway-0.0.1-SNAPSHOT.jar