• Post Reply Bookmark Topic Watch Topic
  • New Topic

need to install tomcat on fedora11  RSS feed

 
karthick chinnathambi
Ranch Hand
Posts: 196
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to install apache-tomcat in fedora 11...


can some one help me out with the procedures and also the download link.....

i have searched a lot and none is working.....
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Installing Tomcat in Linux is pretty straightforward. What you need to do is to
1. Download the zip or the tar.gz from here.
2. Extract it to whichever location that you prefer.
3. Set and export the CATALINA_HOME, CATALINA_BASE, JAVA_HOME in your .bashrc.
4. To run the server, $CATALINA_HOME/bin/startup.sh
5. To shutdown the server, $CATALINA_HOME/bin/shutdown.sh

Hope it helps.
 
karthick chinnathambi
Ranch Hand
Posts: 196
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply..

how to set and export JAVA_HOME ,CATALINA_HOME and CATALINA_BASE
 
Vijitha Kumara
Bartender
Posts: 4002
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
karthick chinnathambi wrote:... how to set and export JAVA_HOME ,CATALINA_HOME and CATALINA_BASE

Do you want to know how to export the variable or where those variables should be pointing to?
 
karthick chinnathambi
Ranch Hand
Posts: 196
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijitha Kumara wrote:Do you want to know how to export the variable or where those variables should be pointing to?



both..
 
Vijitha Kumara
Bartender
Posts: 4002
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. Just put the export commands for the JAVA_HOME (this is the root directory where you have installed Java, like "/opt/jdk1.5") and CATALINA_HOME (this is where you have installed Tomcat, like "/opt/jakarta-tomcat-5.0.1"). Add the following commands to /etc/profile or ~/.bashrc, then save the file and reboot the system for changes to take effect (replace these path with your's):
export JAVA_HOME=/opt/jdk-version
export CATALINA_HOME=/opt/jakarta-tomcat-version
 
Tim Holloway
Saloon Keeper
Posts: 18799
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On Fedora/Red Hat systems, the JDK is commonly placed under the /usr/java directory. That's where the RPM installs put them.

Where you put the Tomcat server (CATALINA_HOME) is a bit more interesting. Historically, it would have been under /usr/local, but that's actually not a good location unless you softlink the writable parts of the server to more appropriate locations, since /usr/local/ should be read-only under LSB rules. As Vijitha indicates, /opt is also good, although these days, I'd recommend putting it under /srv.

Of course, for testing purposes, you can install a Tomcat under your home directory. Just make sure that no one else did likewise or you may end up fighting for ports.
 
karthick chinnathambi
Ranch Hand
Posts: 196
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot for your replies....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!