Solved

Different ways to start apache/tomcat

Posted on 2008-06-11
2
230 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
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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Suggested Solutions

Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

679 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