You need to do some reading.

Usually, apache runs on port 80
Usually, tomcat web server runs on port 8080
(of course, you can change it)

If you get to Tomcat via apache, you should be able to do
http://my.machine/examples
and see tomcat examples. If you do not see them, your connector (mod_jk)
is not configured correctly.

If you get to Tomcat directly, you should be able to do
http://my.machine:8080/examples

If your apache is not running, you still can see pages via Tomcat 8080
port, since Tomcat is also a web server. You can disable prot 8080
in tomcat (comment out <!--  ... --> the connector which has 8080
in server.xml), but until you do, your tomcat is serving pages on
port 8080 without apache.

When you do 
   ps -ef | grep httpd
you see Apache

when you do
   ps -ef | grep java | grep -i tomcat 
you will see tomcat processes (and threads)

If you installed apache from the CD or red hat or whatever, it
is automatically started on book.
To stop it you need to do:
   /etc/rc.d/init.d/httpd stop
and to start it, you need to do
   /etc/rc.d/init.d/httpd start


On Fri, 13 Jul 2001, Saadat Ahmed wrote:

> Another basic question.
> 
> When I kill all httpds and hence my apache server is not running and then I
> start tomcat, how come I can browse the tomcat index page on port 8080
> eventhough the apache server is not running.
> 
> Is TomCat more than a Servlet engine, how is the httpd request is being
> processed without me having apache running.
> 
> For some reason when I executed "ps -e | grep "httpd" " I do see httpds.
> 
> Is this apache, if it is then how come it starts eventhough I just started
> tomcat with startup.sh
> 
> Regards,
> 
> Saaat.
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 

Jan K. Labanowski            |    phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center    |    Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd,             |    http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163      |    http://www.osc.edu/

Reply via email to