instalación de CentOS no resuelve el Apache: No hay resultados para la discusión: httpd

Encuentra yum.conf

[root @ d78acc291c9e var ] # find / - nombre yum.conf
 /etc/yum.conf

Comentar la línea que excluye, sólo se puede eliminar httpd

[principal] 
gpgcheck = 1 
installonly_limit = 3 
clean_requirements_on_remove = Verdadero 
mejor = Verdadero 
#exclude = httpd nginx php mysql mairadb python-psutil python2-psutil
//重新安装
yum install httpd - y systemctl permiten httpd systemctl iniciar httpd systemctl httpd status

  Activo: activo (en ejecución)

  Estado: "Iniciado, escucha en: el puerto 80"

[root @ d78acc291c9e var ] # httpd - v 
Versión de servidor: Apache / 2.4 . 37 (centos) 
Servidor construida: Dec 23  2.019 mil  20 : 45 : 34

referencia:

https://www.linuxquestions.org/questions/fedora-35/yum-can%27t-find-httpd-or-apache-547678/ 

Supongo que te gusta

Origin www.cnblogs.com/v5captain/p/12596403.html
Recomendado
Clasificación