Ubuntu14.04 Kylin Installation Configuration TOMCAT7 server:
Put the current logged in user root directory: ~
1, still is decompression
Tar–xzf apache-tomcat-7.0.40.tar.gz
Get apache-tomcat-7.0.40 Folder
2, change a name, or knock on the egg pain:
MV apache-tomcat-7.0.40 Tomcat
3, put/usr/local/
sudo mv tomcat/usr/local/
4. Enter/usr/local/tomcat
Cd/usr/local/tomcat
5, change the user (security first)
sudo chown-r root.
sudo chgrp-r root.
6. Add Environment variables
sudo su-
Vi/etc/profile
At the bottom, add:
Catalina_home=/usr/local/tomcat
Export Catalina_home
Save exit
7. Enter $catalina_home/bin
CD $CATALINA _home/bin
8, modify the catalina.sh
VI catalina.sh, find
# OS specific support. $var _must_ is set to either true or false.
Define Catalina_home and Java_home again on this line:
Catalina_home=/usr/local/tomcat
Java_home=/usr/local/java/jdk1.7.0_21
Save exit
9. Log out of Root and try to start Tomcat
Logout
sudo./bin/startup.sh
If the following is displayed without any exceptions, the startup succeeds:
Using catalina_base:/usr/local/tomcat
Using Catalina_home:/usr/local/tomcat
Using Catalina_tmpdir:/usr/local/tomcat/temp
Using Jre_home:/usr/local/java/jdk1.7.0_21
Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
10, stop Tomcat:sudo./bin/shutdown.sh
11. Install Tomcat Service:
sudo cp bin/catalina.sh/etc/init.d/tomcat
View Services:
sudo service tomcat status
Lists a bunch of operation options, which means that the service is installed properly.
12. Let Tomcat boot
sudo update-rc.d–f tomcat defaults
13, through the service to start a test
sudo service tomcat start
Get! Please refer to the friends who need it!
Ubuntu14.04 Kylin installation Configuration Tomcat7 server