In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install Tomcat under Linux". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install Tomcat under Linux.
Tomcat is a small and lightweight application server, which is widely used in small and medium-sized systems and not many concurrent access users. It is the first choice for developing and debugging JSP programs.
System environment
System platform: RHEL 5.4 (system requirements: Linux 2.6 + kernel)
Nginx version: nginx/1.0.15
Mysql version: 5.1.35-log Source distribution
Php version: php-5.2.10
Install JDK
1) download j2sdk, such as jdk-6u1-linux-i586-rpm.bin
2) in the terminal, change to the directory where jdk-6u1-linux-i586-rpm.bin is located, and enter the command
# chmod + 755 jdk-6u1-linux-i586-rpm.bin; / / add permissions for execution.
3) execute the command
#. / jdk-6u1-linux-i586-rpm.bin; / / generate the file of jdk-6u1-linux-i586.rpm.
4) execute the command
# chmod + 755 jdk-6u1-linux-i586.rpm; / / add execution permissions to jdk-6u1-linux-i586.rpm.
5) execute orders
# rpm-ivh jdk-6u1-linux-i586.rpm; / / install jdk.
6) the license agreement will appear on the installation interface, press Enter to accept it, and install jdk in / usr/java/jdk1.6.0_01.
7) set the environment variable and add the following to / etc/profile (you can use vi to edit the profile):
JAVA_HOME=/usr/java/jdk1.6.0_01 CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin export PATH CLASSPATH JAVA_HOME
8) the version of the command java-version,jdk executed on the terminal is jdk1.6.0_01, which means that jdk has been installed successfully.
Install Tomcat
1) download apache-tomcat-6.0.10.tar.gz
2) decompress the compressed package
[root@linux bin] # tar-zxvf apache-tomcat-6.0.10.tar.gz; / / decompress
3) copy apache-tomcat-6.0.10 to / usr/local/ and rename it to tomcat
[root@linux bin] # cp-R apache-tomcat-6.0.10 / usr/local/tomcat
4) start tomcat
[root@linux bin] # / usr/local/tomcat/bin/startup.sh Using CATALINA_BASE: / usr/local/tomcat Using CATALINA_HOME: / usr/local/tomcat Using CATALINA_TMPDIR: / usr/local/tomcat/temp Using JRE_HOME: / usr/local/jdk/jdk1.6.0_17 Using CLASSPATH: / usr/local/tomcat/bin/bootstrap.jar [root@linux bin] #
At this point, the tomcat installation is complete.
test
Restart Apache or Nginx, now use a browser to access http://server:8080, the tomcat default page appears, indicating that the installation has been successful. You can visit the JSP sample program in the following URL to check that the JSP program is working properly.
Thank you for reading, the above is the content of "how to install Tomcat under Linux". After the study of this article, I believe you have a deeper understanding of how to install Tomcat under Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.