Solved

Different ways to start apache/tomcat

Posted on 2008-06-11
2
237 Views
Last Modified: 2013-12-02
What are the different ways to start apache,tomcat in unix and windows ?
i am confused by httpd,startup.sh,startup.bat
is restart option available?
catalina.bat ... what is that catalina ? what is the use?


what is this ?

/etc/init.d/httpd stop
/etc/init.d/httpd stop


what is init.d? is this a directory? is dot allowed  for directory? what is the use ?

why its restarting from that folder?


FULL OF CONFUSION ....PLEASE CLARIFY !!

THANKS!

0
Comment
Question by:jaisonshereen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
pmartin8 earned 250 total points
ID: 21760855
On windows, there are normally 2 ways to get it started...
When you download tomcat, you had the choice to get the "exe" bundle or the zip download.

With the first option, the right way to start it to launch the tomcat.exe file.

In your case you probably have the zip version of tomcat.

This bundle shows all the scripts mechanics to launch tomcat.. yes it can be confusing put I prefer this version since you get a look of what is done "under the hood"

all .sh files are intended to be executed on unix systems... and bat files are for windows...

I don't know what is httpd, but you don'T need to execute it, it will prabably be called when you click on catalina.bat, which is the script that actually launch tomcat.

Catalina is an alias for this version of tomcat... Its the Catalina version of Tomcat.
Catalina.bat contains the main() of the application. You could probably start Tomcat whit startup.bat, but you some environement varibales might not be set since it's done in the catalina.bat

hope this clarifies!
0
 
LVL 2

Assisted Solution

by:dualarrow
dualarrow earned 250 total points
ID: 21766317
In linux, /etc/init.d contains service scripts to start/stop etc various linux services.

httpd is the http daemon (or service in windows talk) so

/etc/init.d/httpd start

will start the http server.

/etc/init.d is a directory which contains the scripts for services (like httpd).

Hope this helps.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question