<distributionManagement>
<repository>
<id>nexus-releases</id>
<url>http://58.63.50.226:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<url>http://58.63.50.226:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
!/bin/bash
echo "設(shè)置環(huán)境變量...start..."
source ~/.bash_profile
echo "設(shè)置環(huán)境變量...finish..."
PID=$(ps -ef| grep eureka-center-server-0.0.1-SNAPSHOT.jar | grep -v grep | awk '{print $2}')
echo $PID
if [-z "$PID"]
then
echo "項(xiàng)目已經(jīng)關(guān)閉....."
else
echo "項(xiàng)目正在運(yùn)行雀摘,先行關(guān)閉...."
echo kill $PID
kill $PID
echo "在端口1111啟動(dòng)eurekaserver......"
java -jar eureka-center-server-0.0.1-SNAPSHOT.jar --spring.profiles.active=peer1 > eurekaserver-1111.log 2>&1 &
echo "在端口1112啟動(dòng)eurekaserver......"
java -jar eureka-center-server-0.0.1-SNAPSHOT.jar --spring.profiles.active=peer2 > eurekaserver-1112.log 2>&1 &
echo "啟動(dòng)完成 tail -n200 -f eurekaserver-1111.log 或者 eurekaserver-1112.log觀察啟動(dòng)結(jié)果"
fi