Three deployment methods of tomcat

tomcat version: 7.0.59

tomcat installation directory ${tomcat_home}

The first: under regular webapps

Throw it directly to ${tomcat_home}/webapps

The second: external deployment

Modify ${tomcat_home}/conf/server.xml and add the specified path of the directory where the web is located under the < Host > tag, such as:

<Context path="/mp" docBase="D:\\workspace\\mp\\target\\mp" reloadable="true" sessionCookiePath="/mp" sessionCookieName="yoursessionname">
        </Context>

The third type: build a project directory mirror under ${tomcat_home}/conf

In the conf directory, create a new Catalina (pay attention to capitalization)\localhost directory, and create a new xml file in this directory. The name can be chosen at will, as long as it does not repeat the file name in the current file. The content of the xml file is: 

<Context path="/mp" docBase="D:\\workspace\\mp\\target\\mp" debug="0" privileged="true">
</Context>

 

The second recommended

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326535227&siteId=291194637