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>
网友评论