Advertisement
Guest User

Untitled

a guest
Mar 9th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.83 KB | None | 0 0
  1. [1st run.bat]
  2.  
  3. export PWD=`pwd`
  4. export SLAVE_PATH=$PWD
  5. cd $PWD/../../../
  6. export NEW_PWD=`pwd`
  7. export INSIGHTS_BASH_PATH=$NEW_PWD
  8. cd $SLAVE_PATH/jetty/insights
  9. java -Xms512M -Xmx1024M -DINSIGHTS_BASE_PATH=$INSIGHTS_BASH_PATH -
  10. DSLAVE_BASE_PATH=$SLAVE_PATH -Dslave.port=8983 -jar start.jar
  11.  
  12.  
  13. [2nd run.bat]
  14. cd `pwd`/../../../
  15. export INSIGHTS_BASE_PATH=`pwd`
  16. cd $INSIGHTS_BASE_PATH
  17. cd app/conf
  18.  
  19. ####not sure what below one does########
  20. For /F "tokens=1* delims==" %%A IN (insights.properties) DO (
  21.     IF "%%A"=="CONNECTION_URL" set url=%%B
  22.     IF "%%A"=="CON_USER_NAME" set username=%%B
  23.     IF "%%A"=="CON_PASSWORD" set password=%%B  
  24.     )
  25. echo "%url%"
  26. echo "%username%"
  27. echo "%password%"
  28.  
  29. cd ../master/tomcat/bin
  30. startup.bat -DINSIGHTS_BASE_PATH=%INSIGHTS_BASE_PATH% -DCON_URL=%url% -DCON_USR_NAME=%username% -DCON_PASS=%password%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement