1234567891011121314151617181920212223242526 |
- #!/bin/bash
- source /etc/profile
- base_dir="/mnt/b2b-search"
- context_name="search-console-b2b"
- version="0.1.9-SNAPSHOT"
- cd $base_dir
- wf=$context_name-$version.war
- function install() {
- rm -rf $wf.bak
- if [ -f $wf ]; then
- mv -f $wf $wf.bak
- fi
- wget -q http://113.105.74.141:8081/artifactory/libs-release/com/uas/search/$context_name/$version/$wf
- }
- function run() {
- ps -ef|grep $wf|grep java|awk '{print $2}'|xargs kill -9
- nohup java -Dserver.port=8081 -jar $wf 1>log.log 2>nohup.log &
- }
- install
- run
|