<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 "设置环境变量...start..."
source ~/.bash_profile
echo "设置环境变量...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 "项目已经关闭....."
else
echo "项目正在运行,先行关闭...."
echo kill $PID
kill $PID
echo "在端口1111启动eurekaserver......"
java -jar eureka-center-server-0.0.1-SNAPSHOT.jar --spring.profiles.active=peer1 > eurekaserver-1111.log 2>&1 &
echo "在端口1112启动eurekaserver......"
java -jar eureka-center-server-0.0.1-SNAPSHOT.jar --spring.profiles.active=peer2 > eurekaserver-1112.log 2>&1 &
echo "启动完成 tail -n200 -f eurekaserver-1111.log 或者 eurekaserver-1112.log观察启动结果"
fi