(1) Go to the Apache website to download the
apache-tomcat-6.0.29.tar.gz file. ?
(2), unzip and unpack
enter the command:
tar -zxvf apache-tomcat-6.0.29.tar.gz
There is a folder apache-tomcat-6.0.29 in the directory, rename it to tomcat
(3), modify the environment Variable
modify the profile file
export CATALINA_HOME=/usr/local/tomcat
export CLASSPATH=.: JAVAHOME / lib: JAVA_HOME/lib in the directory /etcJAVAHOME/lib:CATALINA_HOME/lib
export PATH= P A T H : PATH: PATH: CATALINA_HOME/bin
Execute the command:
source /etc/profile
View environment variables:
echo $CLASSPATH?
Start tomcat:
./catalina.sh start (shut down tomcat ./shutdown.sh stop)
(4), test to
see whether Tomcat has started netstat -ntl |grep 8080
browser address bar input??? http://localhost:8080/???
If you can see Tomcat's welcomesite monitoringpage, it means the integration is successful. So far, the Java/JSP server has been set up.
Several steps to install Tomcat 6 under Linux
Guess you like
Origin blog.csdn.net/weixin_54792157/article/details/113116290
Recommended
Ranking