单一工程重启jar和查看日志sh
startup.sh
#!/bin/bash
ps -ef |grep "eship-shopify-center.*.jar" |grep -v grep |cut -c 9-15 |xargs kill -s 9
nohup java -jar -Dspring.profiles.active=prod eship-shopify-center-1.0-SNAPSHOT.jar >/dev/null 2>&1 &
tail-log.sh
#!/bin/bash
tail -f /tmp/logs/eship/shopify.log