- install Java
- downLoad TomCat
- wget http://apache.tradebit.com/pub/tomcat/tomcat-6/v6.0.30/bin/apache-tomcat-6.0.30-deployer.tar.gz
- tar xzf apache-tomcat-6.0.30.tar.gz
- service tomcat restart
- edit /usr/local/apache-tomcat-7.0.37/conf/server.xml
{tomcat_install}\conv\server.xml
<HOST>
<CONTEXT PATH="/DesignFolder"
docBase="DesignFolderorVirtualName" <!--or "Physical Folder" -->
debug="0" <!-- 0 to 9 for debug -->
crosscontest="true"
reloadable="true">
</CONTEXT> - create Folder. the folder per docBase
/usr/local/apache-tomcat-7.0.37/webapps/DesignFolder
/usr/local/apache-tomcat-7.0.37/webapps/DesignFolder/WEB-INF/classes
/usr/local/apache-tomcat-7.0.37/webapps/DesignFolder/WEB-INF
/usr/local/apache-tomcat-7.0.37/webapps/DesignFolder/WEB-INF\lib - make a file
/usr/local/apache-tomcat-7.0.37/webapps/DesignFolder/WEB-INF/web.xml
<welcome-title_list>
<welcome-file>index.jsp</welcome-file> - edit /usr/local/apache-tomcat-7.0.37/webapps/DesignFolder/WEB-INF/web.xml
edit web.xml for servlet. (servlet is a java file which run in tomcat)
<web-app>
<servlet>
<servlet-name>helloWorld</servlet-name>
<servlet-class>helloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet--name>helloWorld</servlet-name>
<url-pattern>/HelloWorld</url-pattern> <!-- class file is under /DesignFolder/WEB-INF/classes -->
</servlet-mapping>
</web-app>
It is my Computer Notes. Using Guide : object-key or object-key-key e.g. Step 1 Blog Search : [mysql-run] and then Step 2 ctrl+F [mysql-run] {bookMark me : Ctrl+D}
2013年6月26日 星期三
tomcat install (linux install tomcat)
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言