Review your favorite Linux distribution.
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 09-19-2007, 08:24 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 6

Rep: Reputation: 0
Centos Linux system command help plz

i need a few putty commands about restart system,apache,mysql. i am using centos linux system

Thank you !
Old 09-19-2007, 09:17 PM   #2
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
Originally Posted by niitpro View Post
i need a few putty commands about restart system,
as root
/sbin/init 6

as root
/etc/init.d/httpd restart
/etc/init.d/mysqld restart
. i am using centos linux system

Thank you !

If I'm not mistaken.

Old 09-19-2007, 09:35 PM   #3
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
Redhat (which CentOS is derived from) has a service utility that is rather easy to use, provided you know the name of the services.

Man service
Man chkconfig

The 'service' command allows you to start, stop and restart services quickly. It's as easy as 'service httpd stop' (or 'start' or 'restart')

The 'chkconfig' command makes configuring services to start in defined runlevels easy.

The 'service' and 'chkconfig' commands are your friends ... well, at least they're mine.


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
CentOS 4.4 - no useradd or adduser command Micro420 Red Hat 5 04-05-2007 12:14 AM
rpm: command not found in CentOS GavB Linux - Distributions 8 03-25-2007 07:40 AM
list file system linux supports "please give the command or system call" varun_shrivastava Linux - General 4 01-09-2007 08:28 AM
Help with System() command on linux PERL I R J Programming 2 01-05-2005 01:20 PM
how do i command linux to recognize the new system? ph4tk1dd Linux - Laptop and Netbook 5 08-09-2004 07:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 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