[LBo] PHP MySQL question

Tim George tim at sflnet.com
Wed Apr 25 11:09:01 CEST 2007


> Jisao a écrit :
>
I don't know how to stop/start
> services yet

To manage services as root run:
/etc/init.d/<service_name> option

To see the available options run:
/etc/init.d/<service_name>

e.g. /etc/init.d/apache2 start
/etc/init.d/mysql restart
/etc/init.d/httpd stop

These commands are shell scripts so have a look:
less /etc/init.d/apache2

The reload option allows the service to read in any edits you've made to the
configuration file without restarting. When you have a service with lots of
current users this is very useful.

Sometimes one service depends on another, I'd like to know a nice way of
restarting groups of services, I still sometimes have to resort to a reboot to
see the effects of a configuration change because I don't know which group of
services to restart.


More information about the QnA mailing list