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