GNU/Linux >> Tutoriales Linux >  >> Cent OS

CentOS/RHEL:Cómo instalar e iniciar el servicio Apache httpd

Pregunta:¿Cómo instalar Apache y configurar Apache httpd para que se ejecute como un servicio?

Respuesta:

Instalación del paquete Apache

Si tiene el paquete de apache descargado, puede instalarlo usando el comando rpm como usuario root.

# rpm -ivh httpd

Si tiene configurado el repositorio yum, use la forma recomendada de instalar Apache httpd, es decir, con el comando "yum install".

# yum install httpd
NOTA: Para obtener una versión específica, reemplace httpd con la versión que le gustaría. Ejemplo:httpd-2.2.14-1.2.6.jdk6.ep5.el5.x86_64

Instalando httpd como un servicio

Habilite el servicio http al inicio con el siguiente comando. Esto lo habilitará para los niveles de ejecución 2,3,4 y 5:

# chkconfig httpd on

Para iniciar el servicio httpd:

# service httpd start

Para RHEL 7

Con RHEL 7, utiliza el comando systemctl para habilitar el servicio:

# systemctl enable httpd.service

Con RHEL 7, utiliza el comando systemctl para iniciar el servicio:

# systemctl start httpd.service


Cent OS
  1. Cómo instalar Apache Maven CentOS 7 / RHEL 7

  2. Cómo instalar Apache/httpd en CentOS 8 Linux

  3. Centos:no se pudo iniciar el servidor Apache Http:¿Httpd.service falló?

  4. CentOS / RHEL 7:Cómo instalar y configurar el servidor ftp (vsftpd)

  5. Cómo instalar el paquete pip en CentOS/RHEL 7 y 8

Cómo instalar Apache Tomcat 9.0/8.5 en CentOS 7/RHEL 7

Cómo instalar Apache Maven CentOS 8 / RHEL 8

Cómo instalar Apache Solr 8.9 en CentOS/RHEL 8

Cómo instalar Apache Solr en CentOS y RHEL 8

Cómo instalar Apache Kafka en CentOS/RHEL 7

Cómo instalar y configurar el servidor VNC (TigerVNC) en CentOS / RHEL 7