项目较多时启动单个项目

1.在nigx配置不改变的项目:

location /mdm8 {
        proxy_set_header Host $http_host;
        proxy_pass http://127.0.0.1:8081/mdm8;
        client_max_body_size    10m;
    }

    location /icore {
        proxy_set_header Host $http_host;
        proxy_pass http://127.0.0.1:8081/icore;
        client_max_body_size    10m;
    }

    location /iconsole {
        proxy_set_header Host $http_host;
        proxy_pass http://127.0.0.1:8081/iconsole;
        client_max_body_size    10m;
    }

2.在本地的tomcat的server.xml:配置路径:

<Context crossContext="true" docBase="G:\workspace\trunk\framework\mdm-mdmlogin\mdm8" path="/mdm8"/>
    <Context path="/icore" crossContext="true" docBase="G:\zhongxing\framework\i-core\target\i-core-0.0.2-SNAPSHOT" />
    <Context path="/bpm" crossContext="true" docBase="G:\zhongxing\framework\i-bpm\target\i-bpm-0.0.2-SNAPSHOT" />

3.在本地tomcat的caralina.bat配置:set JAVA_OPTS=%JAVA_OPTS% -Dmdm.home="G:\zhongxing\mdm8\MDM_HOME" -Dmdm.cv="false"(防止两个校验报错)

4.配置eclipse里面想运行的tomcat加项目

5.启动ngix.exe并且在浏览器输入:http://localhost:80,查看Nginx是否启动

6.启动两个tomcat

posted @ 2019-05-07 20:22  无~所~谓  阅读(119)  评论(0编辑  收藏  举报