• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need to install tomcat on fedora11

 
Ranch Hand
Posts: 196
Android Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.....
 
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply..

how to set and export JAVA_HOME ,CATALINA_HOME and CATALINA_BASE
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot for your replies....
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic