Check Java version information
Java-version
Java Version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-bit Server VM (build 24.65-b04, Mixed mode)
If not, install:
Yum-y Install JAVA-1.7.0-OPENJDK
2. Download and unzip Tomcat
# cd/tmp# wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.54/bin/apache-tomcat-7.0.54.tar.gz
# tar Xzf apache-tomcat-7.0.54.tar.gz# mv APACHE-TOMCAT-7.0.54/USR/LOCAL/TOMCAT7
3. Start Tomcat
# cd/usr/local/tomcat7#./bin/startup.sh
[Output EXAMPLE]
using catalina_base: /usr/local/tomcat7using catalina_home: /usr/ local/tomcat7using catalina_tmpdir: /usr/local/tomcat7/tempusing jre_home: /opt/jdk1.8.0_05/jreUsing CLASSPATH: /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jartomcat started.
4. Visit http://ip:8080
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/41/1A/wKiom1PQtxawE6tWAANHDNLLdSQ751.jpg "title=" QQ picture 20140724153359.jpg "alt=" Wkiom1pqtxawe6twaanhdnlldsq751.jpg "/>
5. Set up user accounts
<role rolename= "Admin-gui"/><role rolename= "Admin-script"/><role rolename= "Manager-gui"/>< Role rolename= "Manager-script"/><role rolename= "manager-jmx"/><role rolename= "Manager-status"/> <user username= "Tomcat" password= "Tomcat" roles= "Manager-gui,manager-script,manager-jmx,manager-status, Admin-script,admin-gui "/>
6. Restart the Tomcat service
#./bin/shutdown.sh #./bin/startup.sh
This article is from "Rookie play ops" blog, please be sure to keep this source http://5323197.blog.51cto.com/5313197/1529716