GNU/Linux >> Tutoriales Linux >  >> Linux

Cómo iniciar, reiniciar y detener el servidor web Apache

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]#

Linux
  1. Cómo configurar un servidor web Apache

  2. Servicios de inicio, detención y reinicio en el servidor systemd RHEL 7 Linux

  3. Cómo iniciar, detener y reiniciar servicios en un servidor dedicado Linux

  4. ¿Cómo maneja Linux múltiples separadores de rutas consecutivas (/home////username///file)?

  5. Cómo iniciar, detener y reiniciar el servicio de Zimbra

Cómo instalar y configurar el servidor web Apache en Debian 11

Cómo instalar y configurar el servidor web Apache en Ubuntu

Cómo agregar compatibilidad con PHP-FPM en el servidor web Apache y Nginx en Ubuntu 18.04

Cómo instalar y configurar un servidor web LAMP en Ubuntu 18.04

Cómo iniciar, detener, reiniciar, verificar el estado del servicio IIS por línea de comandos

Cómo configurar un servidor doméstico