Configure Tomcat under Ubuntu

Source: Internet
Author: User

JDK: Configuration: http://www.cnblogs.com/liunanjava/p/4296540.html

First, download

Address: http://tomcat.apache.org/download-80.cgi

Second, the installation decompression 2.1, decompression
TAR-ZXVF apache-tomcat-8.0.18.tar.gz
2.2. Move to the directory
sudo mv ~/downloads/apache-tomcat-8.0.18//usr/local/develoment/[email protected]:/$ ll/usr/local/develoment/Total dosage 157148drwxr-xr-x  4 root   root        4096  February 21:21/drwxr-xr-x root   root        4096  February 20 16:41. /drwxrwxr-x  9 ln0491 ln0491      4096  February 21:19 apache-tomcat-8.0.18/drwxr-xr-x  8 UUCP      143      4096 December 12:53 jdk1.8.0_31/-rw-r--r--  1 root   root   160901914  February 20 15:46 Jdk-8u31-linux-x64.tar.gz[email protected]:/$
2.3. Start Tomcat and stop
cd/usr/local/develoment/apache-tomcat-8.0.18/bin/./startup.sh       //start-up service

Input in IE: http://localhost:8080/

./shutdown.sh
Iii. configuration file 3.1, root User Configuration

Adding software connections to the Usr/bin directory

You can enter starup.sh boot from anywhere, shutdown.sh to close

3.2. Configure the current user profile
VI/HOME/LN0491/.BASHRC      //Add path in Path

Add the Tomcat bin directory to the path path:/usr/local/develoment/apache-tomcat-8.0.18/bin/

Export Java_home=/usr/local/develoment/jdk1.8.0_31/export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/ Tools.jar  export path= $PATH: $JAVA _home/bin: $JAVA _home/jre/bin:/usr/local/eclipse/:/usr/local/develoment/ apache-tomcat-8.0.18/bin/  
3.3. Make the configuration file effective
source. BASHRC

Now you can enter startup.sh in any location to start Tomcat, and you can also enter shutdown.sh to close Tomcat

    • This article is from: Linux Tutorial Network

Configure Tomcat under Ubuntu

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.