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
Code
<figure class="my-12 group">
      <div class="relative rounded-2xl md:rounded-[2.5rem] overflow-hidden border border-white/10 shadow-2xl bg-[#0a0a0a]">
          <img 
            src="https://blogs-bd.witmovil.com/api/files/pbc_1125843985/989ux69t19aa8p2/image_919to9beqt.png" 
            alt="Paso 1" 
            class="w-full h-auto object-cover"
            loading="lazy"
          />
      </div>
      <figcaption class="text-center text-gray-400 text-[10px] mt-4 uppercase tracking-[0.3em] font-bold">
        — Captura de pantalla 01 —
      </figcaption>
    </figure>

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