1. Server
1.1 concept
Computer server software installed: Server
Server Software: receiving a user's request, processes the request, responds
web server software: receiving a user's request, processes the request, responds
In the web server software, you can deploy web projects, allowing users to access these items through a browser
1.2 common web server software
1. webLogic: oracle company, large JavaEE server, JavaEE specification supports all charges.
2. webSphere: IBM Corporation, a large JavaEE server, JavaEE specification supports all charges.
3. JBOSS: JBOSS company, large JavaEE server, JavaEE specification supports all charges.
4. Tomcat: Apache Fund, small and medium sized server, supports only a small number of JavaEE specification servlet / jsp, open source, free.
2. Tomcat basis
2.1 tomcat directory structure
table of Contents | Directory file | Explanation |
bin | / | Tomcat storage start and stop batch script files, etc. |
conf | / | Tomcat storage-related configuration files |
Catalina | It used to store configuration for each virtual machine context | |
context.xml | Context is used to define all the web applications are required to load the configuration, if web.xml specify their context.xml, the file will be overwritten | |
catalina.properties | Tomcat environment variable configuration | |
catalina.policy | Tomcat runtime security policy configuration | |
logging.properties | Tomcat day profile, you can modify the Tomcat log levels and log file paths through the | |
server.xml | tomcat core server's configuration file | |
tomcat-users.xml | Tomcat default user defined and role mapping configuration information | |
web.xml | tomcat default in all applications deployment descriptor file, define the main Servlet and foundation | |
lib | / | tomcat dependent jar files |
logs | / | Log file directory |
temp | / | Temporary File Creation Directory |
webapps | / | tomcat default web application deployment directory |
work | / | After storing the generated java source code and compiled files jsp temporary directory class bytecode |
2.2 Tomcat start and stop
Start: double-click bin directory startup.bat start
Stop: double-click the bin directory to start shutdown.bat