LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Centos Linux system command help plz (https://www.linuxquestions.org/questions/linux-newbie-8/centos-linux-system-command-help-plz-585941/)

niitpro 09-19-2007 07:24 PM

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 !

kstan 09-19-2007 08:17 PM

Quote:

Originally Posted by niitpro (Post 2897331)
i need a few putty commands about restart system,
as root
/sbin/init 6

apache,mysql
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.

Regards,
Ks

SlowCoder 09-19-2007 08:35 PM

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.


All times are GMT -5. The time now is 03:56 AM.