LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-19-2013, 09:38 AM   #1
mlotfi
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
newbie installing Tomcat in Linux


Hi,
I am new to Linux, I was told to install Tomcat and Solr in Linux, I found this tutorial :
http://java.dzone.com/articles/how-i...#comment-96459

Please I want start asking some question and your help will be appreciated.

My first question :
After installing Tomcat from binary :
Code:
cd /usr/shared/
wget http://apache.cc.uoc.gr/tomcat/tomcat-7/v7.0.22/bin/apache-tomcat-7.0.22.tar.gz
tar -zxvf apache-tomcat-7.0.22.tar.gz
rm apache-tomcat-7.0.22.tar.gz
Why the author of this tutorial said :
Next you must install tomcat native by downloading the source ?
 
Old 03-19-2013, 09:46 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
That's not source code. It's tomcat binaries in a tar.gz archive (tarball). I'm not sure of your question; how do you *want* to install it? You've got 3 options: precompiled binaries in a tarball (what you've apparently outlined), prebuilt package for your distribution (in a package repository usually), or build from source which can be technical for users new to Linux and Tomcat.

What distro are you using?
 
Old 03-19-2013, 09:48 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
because tomcat and tomcat-native are not the same thing. The apache-tomcat package will be java based portable code, whereas the native package will be needed to run it on a per architecture basis.
 
Old 03-19-2013, 02:54 PM   #4
mlotfi
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks lot for your helps.
To install java I found some people do :
yum install java

other people do :
yum install java-(version)-openjdk
yum install java-(version)-openjdk-devel

Can you please advise me on which one is the correct one ?
thanks
 
Old 03-19-2013, 08:46 PM   #5
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
It highly depends on the application you install. I would recommend rather than reading run of the mill tutorials you read the official documentation for the version of Solr you plan to run. Documentation from the software creator is almost always the best source. Looking at the documentation for Solr 4.2 right at the top they have system requirements. That's where they outline the version of Java needed (minimum Java 6; or Java 7 Update 1). They recommend to always run the latest patched version of Java whether you go with Java 6 or Java 7.

Really it's up to you.
 
  


Reply

Tags
redhat, tomcat



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing tomcat on linux jkmartha Linux - Newbie 1 04-11-2005 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration