美文网首页
tomcat configuration

tomcat configuration

作者: 夏慕振 | 来源:发表于2017-07-27 12:21 被阅读0次

    JAVA_HOME=/usr/local/jdk
    CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:
    CATALINA_HOME=/usr/local/tomcat
    export PATH=$PATH:$JAVA_HOME/bin:$CLASSPATH:$CATALINA_HOME:
    <role rolename ="manager-gui" />
    <role rolename ="manager-script" />
    <role rolename ="manager-jmx" />
    <role rolename ="manager-status" />
    <role rolename ="admin-gui" />
    <user username ="admin" password ="admin" roles ="manager-gui,manager-script,manager-jmx,manager-status,admin-gui" />

      </Host>
      <Host name="www.test.com"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
        <Context docBase="test" path="" />
      </Host>
    

    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <html>
    <head>
    <title>JSP test page.</title>
    </head>
    <body>
    <% out.println("Welcome to test. Site, http://www.test.com"); %>
    </body>
    </html>

    相关文章

      网友评论

          本文标题:tomcat configuration

          本文链接:https://www.haomeiwen.com/subject/cmrzkxtx.html