重新部署命令

#!/bin/bash


echo 'hello world.'
rm -rf /opt/seiois/ei-server/ei-server*
rm -rf /opt/seiois/ei-server/lib
cp -rf /opt/ei-server-0.1.1.tar.gz   /opt/seiois/ei-server/
cd /opt/seiois/ei-server/
tar -zxvf ei-server-0.1.1.tar.gz
cp -rf ./ei-server/lib  .
./bin/stop.sh 
./bin/start.sh 
tail -f /var/log/seiois/ei-server/ei-server.log

 

你可能感兴趣的:(重新部署命令)