Solved

Different ways to start apache/tomcat

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
local dns 2 135
Question to Java runtime 10 145
PHP Register global 21 77
Where are web pages installed that I wish to invoke from tomcat (MAC) 2 49
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now