echo "1.remove...." rm -r /DATA/was/phts-manager/* echo "2.file move...." cp /DATA/was/deploy-app/phts-manager/war/module-post-0.0.1-SNAPSHOT.war /DATA/was/phts-manager/phts-manager.war echo "3.unzip..." cd /DATA/was/phts-manager/ jar xvf ./phts-manager.war echo "4.add jar..." cp /DATA/was/deploy-app/phts-manager/lib/tomcat-juli-8.5.4.jar /DATA/was/phts-manager/WEB-INF/lib/ cp /DATA/was/deploy-app/phts-manager/lib/javaee.jar /DATA/was/phts-manager/WEB-INF/lib/ #cp /was/deploy-app/phts-manager/lib/ojdbc8.jar /was/phts-manager/WEB-INF/lib/ #echo "5.remove jar..." #rm -r /was/phts-manager/WEB-INF/lib/log4j-api-*.jar #rm -r /was/phts-manager/WEB-INF/lib/log4j-to-slf4j-*.jar #rm -r /was/phts-manager/WEB-INF/lib/tomcat-embed*.jar #rm -r /was/phts-manager/WEB-INF/lib-provided/tomcat-embed*.jar #echo "5.redis start..." #java -jar ./war/redis-0.0.1-SNAPSHOT.jar