TomcatInstallation Standard manualFirst,TomcatIntroduction
Tomcat is a free open source Serlvet container, which is a core project of the Apache Foundation's Jakarta project, by Apache, Sun and some other companies and individuals developed together. With Sun 's involvement and support, the latest Servlet and JSP specifications are always reflected in Tomcat .
Tomcat is a robust standalone Web server with Servletcontainer, but its Web server is not as complete as many more robust Web servers, such as Apache Web server ( for example,Tomcat does not have a large number of selective modules ). However,Tomcat is free open source software, and there are many experts dedicated to its development.
therefore Tomcat is running on a Java virtual machine, so you need to install J2SDK (Java 2 software development Kit) before installing Tomcat. that's the JDK.
Second,Jdkinstallation
1) Download The J2SDK, the main operating system is the level or the first. Available for download from Oracle website,jdk-8u25-linux-x64.tgz
2) can be uploaded to the Linux/opt directory using WINSAP after the Windows terminal download
3) Enter /opt directory : #cd/opt;ls
4) Add permission to execute : #chmod +755jdk-8u25-linux-x64.tgz
4) Unzip and install : #tar zxvf jdk-8u25-linux-x64.tgz
5) Move the Java directory to /usr: #cp java 1.8.0_25/usr/java
5) Set the environment variables, add the following in/etc/profile ( you can edit profile with VI):
Java_home=/usr/java
Classpath= $JAVA _home/lib: $JAVA _home/jre/lib
Path= $PATH: $JAVA _home/bin: $JAVA _home/jre/bin
Export PATH CLASSPATH Java_home
8) execute command java –version on the terminal, the jdk is javaversion "1.8.0_25 means the JDK has been installed successfully.
Third,Tomcatinstallation
1)Tomcat user created:
Create a tomcat group:# Groupadd Tomcat
Create a User:#useradd tomcat–g Tomcat
2) Download apache-tomcat-7.0.56.tar.gz, move to /u01 below:
#mv apache-tomcat-7.0.56.tar.gz/u01
3) Modify the properties of the file:#chmod755 apache-tomcat-7.0.56.tar.gz
4) owning group and owning User:#chown tomcat:Tomcat apache-tomcat-7.0.56.tar.gz
5) Unzip the installation package:#tar-zxvf apache-tomcat-7.0.56.tar.gz
6) Start tomcat:#cd/u01/apache-tomcat-7.0.56/bin
#startup. Sh
Show Using catalina_base:/u01/apache-tomcat-7.0.56
Using Catalina_home:/u01/apache-tomcat-7.0.56
Using Catalina_tmpdir:/u01/apache-tomcat-7.0.56/temp
Using Jre_home:/u01/java
Using CLASSPATH:/u01/apache-tomcat-7.0.56/bin/bootstrap.jar:/u01/apache-tomcat-7.0.56/bin/tomcat-juli.jar
Tomcat started.
to this Tomcat has been installed, now using the browser to access http://localhost:8080, the Tomcat default page appears, indicating that the installation was successful.
Four,TomcatConfigurationConfigurationTomcatguiManage Users
Edit Tomcat configuration file: #vim Conf/tomcat-users.xml
Add management Roles and users: <rolerolename= "Admin-gui"/>
<userusername= "Tomcat" password= "Tomcat" roles= "Admin-gui"/>
configuration of startup memory parameters
Tomcat/bin/catalina.bat If it's Linux, it 's catalina.sh.
Add the following parameters to the back of REM
$JAVA _opts=-xms256m-xmx256m-xx:maxpermsize=64m
ModifyTomcatof theJDKCatalogue
Open Tomcat/bin/catalina.bat
After the last rem increase
$JAVA _home=/u01/java/jdk1.6.0
This article is from the "Jeremy Ops Architecture" blog, make sure to keep this source http://jeremybale.blog.51cto.com/3341343/1574072
Tomcat Installation Manual-linux environment