Settings | Sign in | Sign up

The author has 4 posts.

【方法】将C盘中的webapps目录下的网站转移到其他盘的方法

Floor 1 巨大八爪鱼 9/17/16 12:53
例如要将网站C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\test整体移动到D:\Codes\JSP\test目录下,只需打开C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf\server.xml文件,在</Host>之前加入:
<Context path="/test" docBase="D:\Codes\JSP\test" reloadable="true" debug="0"></Context>
然后重启Tomcat服务器即可。
如图:
Floor 2 巨大八爪鱼 9/17/16 12:55
其中,reloadable="true"表示当WEB-INF/classes文件夹下的class文件更新时,Tomcat服务器自动重启并载入新的class文件。
Floor 3 巨大八爪鱼 9/17/16 12:56
本文参考资料:
http://longphoenix.iteye.com/blog/739591
http://zhidao.baidu.com/link?url=bWIv8S8_5MYRbudGDV39YocM-Phx-4dCNMdaGLwIGM1EOveOVMTmzZ5QWP-nlh7PI3aoEDV7SfZ1A5tr9jNcma
Floor 4 巨大八爪鱼 3/14/24 10:03
用eclipse开发出来的jsp网站最后打包生成的是war包。war包其实是zip压缩文件,用winrar解压出来再按楼上所说的方法配置一下,就可以在正式的服务器上运行了。

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.