Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-27-2010, 07:31 PM   #1
Registered: Dec 2010
Posts: 135

Rep: Reputation: 0
Question Terminal Command

Can anyone tell me what command can be used so that the Linux Centos Server starts mysqld, httpd and ftpd services at boot time automatically?
Old 12-27-2010, 07:59 PM   #2
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 37
Read the manual for chkconfig.
You need commands like
$ sudo chkconfig --level 3 httpd on // This will enable apache service to start when boot in text mode.
Old 12-28-2010, 09:39 AM   #3
LQ Newbie
Registered: Nov 2010
Location: Milwuakee, WI
Distribution: BackTrack - Ubuntu
Posts: 29

Rep: Reputation: 2
Do all these in the terminal:

1st: chkconfig --list|grep mysqld
(this will print the current config)

2nd: sudo chkconfig httpd on
(this sets it to start at boot)

3rd: chkconfig --list|grep mysqld
(this prints the configuration again)

If it works the output of the first command and third command would differ as the following:
1st: mysqld 0|off 1|off 2|off 3|off 4|off 5|off 6|off
3rd: mysqld 0|off 1|on 2|on 3|on 4|on 5|on 6|off

To do this to ftpd and httpd, just replace mysqld with the correct daemon


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 do I resize the terminal window from the command line in the gnome terminal QuIcKSpArK Linux - Newbie 5 04-21-2012 02:04 PM
[SOLVED] Make linux terminal transparent with terminal command? yooy Linux - Newbie 1 05-11-2010 03:24 AM
Is command line invocation of gnome-terminal to run more than one command possible? narnie Programming 4 02-17-2010 10:39 PM
[SOLVED] append command output to file by giving command in terminal sumeet inani Linux - Newbie 4 07-03-2009 10:36 AM
Terminal command for GUI command "Remove to trash" GunSkit Linux - General 3 06-29-2004 01:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration