标签:
先停止tomcat服务
1.进入apache-tomcat-7.0.68/conf/Catalina/localhost
2.新建admin.xml(admin为项目名称,要对应)
admin.xml内容:
<?xml version=‘1.0‘ encoding=‘utf-8‘?> <Context crossContext="true" debug="5" displayName= "admin" docBase= "/home/jenkins/webapps/admin" path= "/admin" reloadable="false" workDir= "work\Catalina\localhost\admin" > </Context>
3.把项目移动到 /home/jenkins/webapps
项目完整目录为:/home/jenkins/webapps/admin
4.启动tomcat
标签:
原文地址:http://www.cnblogs.com/007sx/p/5750448.html