WitMovil.El Blog de un DevOps
WitMovil.

Explorando la automatización, la tecnología móvil y la ingeniería de software eficiente.

Sistemas Operativos
Explorar
TechCodeAutomation
Nosotros
Acerca deContactoDonar
Conectar
Nuntius GitHub LinkedIn

© 2026 WitMovil

BY NUNTIUS.DEV

PrivacidadTérminosAnti-Spam

Hecho con Next.js & PocketBase

Volver al inicio

Iniciar, Detener y Reiniciar Apache en Diferentes Distribuciones Linux/Unix

Jeyson Orozco
Escrito porJeyson Orozco
Ko-fi
4 de febrero de 2024
General
Iniciar, Detener y Reiniciar Apache en Diferentes Distribuciones Linux/Unix

Tabla de Contenido

Toggle
  • Requisitos
    • Iniciar, Detener y Reiniciar Apache en Diferentes Distribuciones
      • 1. Distribuciones Debian/Ubuntu:
        • Para versiones de Debian 7.X y Ubuntu 14.10 o anteriores:
        • Para versiones Debian 8.X+ o Ubuntu 15.04+:
      • 2. Distribuciones CentOS/RHEL (Red Hat):
        • Para versiones CentOS/RHEL 6.X o anteriores:
        • Para versiones CentOS/RHEL 7.X o posteriores:
      • 3. Otros Sistemas y Comandos Genéricos:
    • Conoce el estado de Apache:

Requisitos

  • Acceso SSH al servidor Linux/Unix.
  • Permisos de superusuario o capacidad para usar sudo.
Code
sudo -s

Iniciar, Detener y Reiniciar Apache en Diferentes Distribuciones

1. Distribuciones Debian/Ubuntu:

Para versiones de Debian 7.X y Ubuntu 14.10 o anteriores:

Iniciar Apache:



Code
sudo /etc/init.d/apache2 start

Detener Apache:

Code
sudo /etc/init.d/apache2 stop

Reiniciar Apache:

Code
sudo /etc/init.d/apache2 restart

Para versiones Debian 8.X+ o Ubuntu 15.04+:

Iniciar Apache:

Code
sudo systemctl start apache2.service

Detener Apache:

Code
sudo systemctl stop apache2.service

Reiniciar Apache:

Code
sudo systemctl restart apache2.service

2. Distribuciones CentOS/RHEL (Red Hat):

Para versiones CentOS/RHEL 6.X o anteriores:

Iniciar Apache:

Code
service httpd start

Detener Apache:

Code
service httpd stop

Reiniciar Apache:

Code
service httpd restart

Para versiones CentOS/RHEL 7.X o posteriores:

Iniciar Apache:

Code
sudo systemctl start httpd.service

Detener Apache:

Code
sudo systemctl stop httpd.service

Reiniciar Apache:

Code
sudo systemctl restart httpd.service

3. Otros Sistemas y Comandos Genéricos:

Iniciar, detener o reiniciar Apache utilizando apachectl:

Code
sudo apachectl start|stop|restart

Revisar la configuración de Apache:

Code
sudo apachectl configtest

Conoce el estado de Apache:

Code
sudo systemctl status apache2.service
Paso 1
— Captura de pantalla 01 —

Quizás te interesé como arreglar el puerto 80 de Apache