![]() ![]() use netstat -nlp to check for other processes using these ports.8009, AJP connector, tomcat's half of mod_proxy_ajp, (not recommended for performance).8005, shutdown service (disable this, see Standard HTTP/HTTPS ports and Root Permissions, below).tomcat/work, temporary files created by tomcat for its own use (most java source files created for JSPs by the JASPER compiler).tomcat/temp, what points to, servlet-spec specific version of java.io.tmpdir, where tomcat writes temporary files created by webapps.tomcat/logs, where tomcat writes its log files to.tomcat/webapps, where the webapps live, including the webapp config file in tomcat/webapps/ webappname/WEB-INF/web.xml (see "config files in tomcat you usually mess with", below).tomcat/conf, tomcat server-wide config files, see Config Files In Tomcat, below.tomcat/bin, various useful scripts, see Scripts In tomcat/bin, below.also, check on your system's kernel setting for ulimit, max number of open file handles.example, to set both to 512 megabytes: $ export JAVA_OPTS = " -Xmx512m -Xms512m".use -Xms to set initial memory allocation.JAVA_OPTS, command-line options for starting the JVM, usually set by the init script or startup script ( tomcat/bin/catalina.sh).CATALINA_BASE, almost always identical to CATALINA_HOME, usually set by the init script or startup script ( tomcat/bin/catalina.sh), as above.CATALINA_HOME, tomcat installation directory, usually set by the init script or startup script ( tomcat/bin/catalina.sh), which assumes it is contained by the appropriate directory.JAVA_HOME, JDK installation directory, you set this or your package installer sets this.JDBC driver jar file specific to your database server.init scripts for system restart (don't use the standard scripts, use Jason Brittain's init scripts.apache mod_proxy_ajp (not recommended for performance). ![]() the java JDK (JRE alone is usually insufficient).tomcat 6.0.24 or later ( important!, see What Version).Components You Will Probably Have To Download, Install Or Configure.troubleshoot (check log files in tomcat/logs for errors, check netstat -nlp for port conflicts, etc).adjust the system ulimit setting (open file handles limit) if necessary.memory allocation) if necessary by setting JAVA_OPTS in your init script or in tomcat/bin/catalina.sh configure your webapp's database access in tomcat/conf/Catalina/localhost/ webappname.xml and tomcat/webapp/ webappname/WEB-INF/web.xml.create a user for your webapp in your chosen database server.create a manager user by editing tomcat/tomcat-users.xml.configure apache mod_proxy_ajp to connect apache to tomcat (if you want to limit your scalability).configure init scripts to make sure tomcat gets restarted when the linux box is restarted. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |