Tomcat + JDK one-click installation script

Source: Internet
Author: User
#!/bin/shif [ -e /usr/local/java ];then    echo "delete old exist jdk ..."    sleep 2    rm -rf /usr/local/java    echo "install new jdk ..."    mkdir /usr/local/java    sleep 2    tar zxvf jdk* -C /usr/local/javaelse    mkdir /usr/local/java    tar zxvf jdk* -C /usr/local/javafiJDKPATH=`ls /usr/local/java`echo ${JDKPATH}  echo " ">>/etc/profileecho "# JDK ENV">>/etc/profileecho "JAVA_HOME=/usr/local/java/${JDKPATH}">>/etc/profileecho ‘PATH=$JAVA_HOME/bin:$PATH‘>>/etc/profileecho ‘CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar‘>>/etc/profileecho ‘export JAVA_HOME‘>>/etc/profileecho ‘export PATH‘>>/etc/profileecho ‘export CLASSPATH‘>>/etc/profile  if [ -e /usr/local/apache-tomcat* ];then    echo "delete old exist tomcat ..."    sleep 2    rm -rf /usr/local/apache-tomcat*    echo "install new tomcat ..."    sleep 2    tar zxvf apache-tomcat* -C /usr/localelse    tar zxvf apache-tomcat* -C /usr/localfi  cd /usr/local/apache-tomcat*TOMCATPATH=`pwd`echo ${TOMCATPATH}  echo " ">>/etc/profileecho "# TOMCAT ENV">>/etc/profileecho "TOMCAT_HOME=${TOMCATPATH}">>/etc/profileecho ‘PATH=$TOMCAT_HOME/bin:$PATH‘>>/etc/profile  source /etc/profile

Start Tomcat

Enter http: // 127.0.0.1: 8080 in the web browser to access Tomcat

This article from "give me three moles" blog, please be sure to keep this source http://wushuangjay.blog.51cto.com/3125450/1559463

Tomcat + JDK one-click installation script

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.