Today's major courses are:
Install JDK before installing using Tomcat
Download and installation of the Tomcat server
Tomcat Directory Interpretation
1.Tomcat Server download and installation 1) download
Click to go to download
1. After entering the webpage, we will enter the following interface.
2. Select the appropriate version number in the left guide flange according to your requirements
3. In the Right topic section, select the installation package under the Linux system
Which is the tar.gz under the core.
or zip
2) Installation
1. Unzip the downloaded package to the Linux folder, where I put the
/opt
Directory under
3. Configuration of permissions
Switch to root user execution
chmod -R777 /opt/bin/*//将所有的文件赋予权限
4. Configure Environment variables
Modify the profile file in directory/etc, using the command: Vi/etc/profile
export CATALINA_HOME=/opt/tomcatexport CLASSPATH=.:$JAVA_HOME/lib:$CATALINA_HOME/libexport PATH=$PATH:$CATALINA_HOME/bin
Execute command after configuration is complete: source/etc/profile, if there is no prompt error, proves the configuration is successful
5. Execute the following command
//切换到bin目录下cd /opt/tomcat/bin///执行文件sh startup.sh
6. If the following prompt indicates that the installation was successful
Using CATALINA_BASE: /opt/tomcatUsing CATALINA_HOME: /opt//opt/tomcat/tempUsing JRE_HOME: /usr/jdk1.6.0_23Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar
7. Accessing Tomcat home page on client
http://localhost:8080///默认端口号是8080//其他客户端只需要将localhost换成本地ip地址就行
Tomcat Directory Interpretation
Bin: Holds executable scripts for starting and shutting Tomcat.
Conf:tomcat configuration files, such as Server.xml (Tomcat server configuration file) and Web. XML (Shared profile by all WebApps), password forgot to read
Tomcat-users.xml. WebApps: Store Web applications, and applications that users themselves need to deploy are also placed in this directory.
Work:tomcat the temporary files generated by the runtime, including the class files generated after the JSP compilation. Logs: The log file is stored.
TEMP:JVM the directory used to hold temporary files (java.io.tmpdir).
Tomcat Server installation Teaching (Linux system)