Aquí enumeraremos algunos comandos muy simples para iniciar, reiniciar y detener el servidor web Apache. Por supuesto, debe tener cuidado con el comando de detención ya que sus sitios web dejarán de funcionar.
Para iniciar el uso de Apache:
root@web [/home/admin]# /sbin/service httpd start
httpd (pid 11858) already running
root@web [/home/admin]#
Como puede ver, si Appache (servicio httpd) ya se está ejecutando, el sistema se lo hará saber.
Para reiniciar httpd:
root@web [/home/admin]# /sbin/service httpd restart
root@web [/home/admin]#
Para detener el servidor Apache:
root@web [/home/admin]# /sbin/service httpd stop
root@web [/home/admin]#