LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2004, 02:48 PM   #1
montejr
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
How to start Apache and Tomcat with Linux boot


Hi to all,
I have a pretty simple question. I want to start Apache and Tomcat when my Linux machine is started. I am guessing that I would want to perform something similar to the following:

cd /gauchos1/linux90/apache/bin
./apachectl start

sleep 10

cd /gauchos1/linux90/tomcat/jakarta-tomcat-4.1.29/bin
./startup.sh


Would this be correct? In which file would I place this syntax?

Thanks!
Monte
 
Old 04-23-2004, 02:56 PM   #2
7ux_spirit
LQ Newbie
 
Registered: Apr 2004
Distribution: Redhat 8.0
Posts: 21

Rep: Reputation: 15
If u want to run any script statements when the system startsup u could place them on "/etc/rc.d/rc.local" (The location of this file may be different, me not sure, for different distributins; this is the location of it in my redhat8.0)
 
Old 04-23-2004, 03:03 PM   #3
7ux_spirit
LQ Newbie
 
Registered: Apr 2004
Distribution: Redhat 8.0
Posts: 21

Rep: Reputation: 15
if u want to start any server daemons such as apache httpd at startup, ur server installation would have already added a script in the "/etc/rc.d/init.d/" for that purpose.
u could usually start the daemon from that script (eg: /etc/rc.d/init.d/httpd start)
To start the daemon on a particular runtime check the "chkconfig" command. only root can run 'chkconfig'

Last edited by 7ux_spirit; 04-23-2004 at 03:10 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How many java Services will start while starting tomcat on mandrake linux naveenmadugula Linux - General 2 05-16-2005 12:52 AM
Getting Tomcat to start on Boot Greenman Red Hat 5 11-22-2004 10:41 AM
Configure Redhat Linux on VMWare to use Apache and Tomcat beltzaser Linux - Networking 0 06-25-2004 04:02 AM
Unable to start Tomcat 4 on Linux Manav Linux - Newbie 5 08-22-2003 06:59 AM
How to start scriptfile(tomcat) automatically at boot-time run fmohideen76 Linux - General 4 07-11-2002 11:44 PM


All times are GMT -5. The time now is 04:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration