1: Download tomcat: coreapache-tomcat-7.0.19.tar.gz2: install tomcat only need to extract it can: tarxzvfapache-tomcat-7.0.19.tar.gz-C/usr // a folder named mv/usr/apache-tomcat-7.0.19 will be created under the/usr directory.
1: Download tomcat: core apache-tomcat-7.0.19.tar.gz
2: To install tomcat, you only need to decompress it:
Tar xzvf apache-tomcat-7.0.19.tar.gz-C/usr // a folder for apache-tomcat-7.0.19 will be created under the/usr directory
Mv/usr/apache-tomcat-7.0.19/usr/Tomcat7.0.19 // rename the directory to Tomcat7.0.19
3: configure the environment variable vi/etc/profile
Find the export path user logname mail hostname histsize inputrc and change it to the following content:
TOMCAT_HOME = '/usr/Tomcat7.0.19 ′
PATH = $ PATH: $ TOMCAT_HOME/bin
Export TOMCAT_HOME
Export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
Note: The vi command must be accessed as root; otherwise, the system will prompt "this file is a read-only file", resulting in an error that cannot be modified successfully.
4: restart the server (or source/etc/profile) to make the configuration file take effect.
5. Enter startup. sh to start the tomcat service.
6: Open the browser and enter http: // localhost: 8080 to view the familiar tomcat interface.