In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the steps of "Ubuntu TomCat installation and administrator account". The content of 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 the steps of Ubuntu TomCat installation and administrator account.
First of all, make sure that you install the relevant software and install the JAVA environment
Open the terminal, execute the following command, or use Synaptic Software Manager to search for "sun-java5-jre" and "sun-java5-jdk" and mark the installation.
Sudo apt-get install sun-java5-jre
# if there is plenty of space, it is recommended to install a JDK. He he
Sudo apt-get install sun-java5-jdk
Set the current default java interpreter
Sudo update-alternatives-config java
After execution, a picture similar to the following appears:
There are 4 alternatives which provide `java'.
Selection Alternative
1/usr/lib/jvm/java-gcj/jre/bin/java
2/usr/bin/gij-wrapper-4.1
3/usr/bin/gij-wrapper-4.0
4/usr/lib/jvm/java-1.5.0-sun/jre/bin/java
Press enter to keep the default
Or type selection number:
Enter the number in front of the line that contains "sun". As shown above, enter 4, and then enter enter to confirm.
Download Ubuntu TomCat
$wget http://apache.freelamp.com/jakarta/tomcat-5/v5.5.9/bin/jakarta-tomcat-5.5.9.tar.gz
My tomcat is core downloaded from http://tomcat.apache.org/download-55.cgi. Of course, the following file name should also be modified accordingly.
Decompress Ubuntu TomCat
$sudo tar zxvf jakarta-tomcat-5.5.9.tar.gz-C / opt
$sudo mv / opt/jakarta-tomcat-5.5.9 / opt/tomcat
Make sure you have: in the / etc/environment file (this step is not sure if it is needed)
> CLASSPATH=/usr/lib/j2sdk1.5-sun/lib
> JAVA_HOME=/usr/lib/j2sdk1.5-sun
Start Ubuntu TomCat
$sudo / opt/tomcat/bin/startup.sh
If you can see the following prompt, it means that the startup is successful!
> Using CATALINA_BASE: / opt/tomcat
> Using CATALINA_HOME: / opt/tomcat
> Using CATALINA_TMPDIR: / opt/tomcat/temp
> Using JRE_HOME: / usr/lib/j2sdk1.5-sun
Test: open Firefox, enter http://localhost:8080 in the address bar, if you come out of the default interface of Tomcat, it means the test passed!
Stop the Ubuntu TomCat service
$sudo / opt/tomcat/bin/shutdown.sh
8. Get the JDBC of MySQL, and type http: / / dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-3.1.10.tar.gz/from/http: / / mysql.cbn.net.id/ in the address bar of the Firefox browser to get the software.
9. Install JDBC
$tar-zxvf mysql-connector-java-3.1.10.tar.gz
$sudo cp mysql-connector-java-3.1.10/mysql-connector-java-3.1.10-bin*.jar / usr/lib/j2sdk1.5-sun/lib
Configure the port of Ubuntu TomCat
The Tomcat that comes with Ubuntu opens port 8180, which is neither conventional nor easy to use. We can make some simple changes to allow Ubuntu TomCat to use other ports for service. In Terminal, enter
Sudo gedit / usr/share/tomcat5/conf/server.xml
After looking for the zip or tar.gz package in the Core category in the configuration file, extract it locally and rename the newly generated directory to tomcat for convenience. Move this folder to a path called PATH/. Refer to the above steps such as setting environment variables and port settings, and you are done! Direct operation
PS, when installing tomcat5.5 with apt-get at the beginning, it always fails to install successfully. In shutdown, there is an java exception. * there is really no way to use it.
Sudo apt-get remove tomcat5.5
Uninstall it. Download and install again without apt-get
Thank you for your reading, the above is the content of "Ubuntu TomCat installation and administrator account steps". After the study of this article, I believe you have a deeper understanding of the steps of Ubuntu TomCat installation and administrator account, 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.