您的位置:首页 > 运维架构 > Tomcat

linux 部署替换配置文件,重启tomcat

2014-05-21 17:21 288 查看
echo 'stop the tomcat ...'
ps aufx|grep tomcat|awk '{print $2}'|xargs kill -9
echo 'stop tomcat ok...'
rm -rf /test/helloword/
mkdir /test/helloword/
echo 'dele old ok..'
mv /test/helloword.war /test/helloword/
cd /test/helloword/
jar xvf helloword.war > helloword.txt
rm -r helloword.war
cp -r /test/helloword_properties /test/helloword/
echo 'create new ok...'
cd /usr/local/tomcat6/bin/
./startup.sh
cd /usr/local/tomcat6_2/bin/
./startup.sh
echo 'ok!'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  重启tomcat 两个
相关文章推荐