LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-27-2010, 08:31 PM   #1
rewards
Member
 
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, 08:59 PM   #2
tanveer
Member
 
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, 10:39 AM   #3
Linux_Revolution
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
 
  


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


All times are GMT -5. The time now is 10:43 PM.

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