_pwd=/mnt/rd.ydool.org _ip=122.112.240.731 cd ../ mvn clean package scp target/build/*.jar root@${_ip}:${_pwd} #scp target/build/lib/*.* root@${_ip}:${_pwd}/lib ssh root@${_ip} "cd ${_pwd}; sh ./start.sh"