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!'
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!'
相关文章推荐
- 测试环境自动部署:抓取war包,备份,替换配置文件,部署到tomcat下并重启
- linux tomcat 杀死进程,部署配置文件,重启tomcat
- tomcat部署项目(linux),指定配置文件、war包路径
- 一个脚本搞定开发环境tomcat的部署更新,配置文件替换,图片备份等等
- tomcat通过配置链接文件部署程序
- 【Linux 操作系统】阿里云服务器 操作实战 部署C语言开发环境(vim配置,gcc) 部署J2EE网站(jdk,tomcat)
- LINUX部署WEB项目(TOMCAT安装和配置)
- 在linux环境下部署tomcat应用+配置优化(转)
- 设置tomcat配置文件,在Myeclipse中修改jsp文件之后不用重启tomcat
- 【Linux 操作系统】阿里云服务器 操作实战 部署C语言开发环境(vim配置,gcc) 部署J2EE网站(jdk,tomcat)
- 在linux环境下部署tomcat应用+配置优化
- LINUX部署WEB项目(TOMCAT安装和配置)
- linux 下tomcat部署项目中包含中文名称文件,报404找不到文件错误
- 在Linux下不重启让配置文件修改后立即生效
- 【转】 在linux环境下部署tomcat应用+配置优化
- tomcat共享bin目录,配置文件私有,方便多个项目同时部署做依赖调试。
- 修改Java文件不用重启Tomcat服务----热部署、热加载
- log4j无日志生成? 我将一个web项目部署在tomcat server.xml配置文件中,当我启动tomcat是无日志输出。
- eclipse中web项目部署以后jsp的java文件找不到问题(Tomcat配置serverlocations)
- 设置tomcat配置文件,在Myeclipse中修改jsp文件之后不用重启tomcat