Installer VestaCP-prompt: Følgende pakker er allerede installeret: httpd centos 7

Hvis vores VPS kører CentOS 7, og VPS-udbyderen tilbyder en mindre ren CentOS-distribution, installeres Apache (httpd i CentOS) som standard.

Dette vil resultere i følgende prompt under VestaCP-installationen :

  • "Følgende pakker er allerede installeret: httpd centos 7"
  • (har allerede installeret følgende软件Pakke: httpd centos 7)
!!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!

Following packages are already installed:
httpd

It is highly recommended to remove them before proceeding.
If you want to force installation run this script with -f option:
Example: bash vst-install-rhel.sh --force

!!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!

Error: Control Panel should be installed on clean server.

Løsning

Trin 1: Kør følgende kommando

yum remove httpd 

Trin 2: Installer værktøjet til fjernelse af httpd

Efter at have udført følgende kommando:

yum remove httpd-tools

Er dette OK [y/N]: (Spørger om det skal installeres?)

Indtast y for at installere, du kan slette httpd i CentOS ▼

Installed size: 9.5 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
 Erasing : httpd-2.4.6-67.el7.centos.6.x86_64 1/2
warning: /etc/httpd/conf/httpd.conf saved as /etc/httpd/conf/httpd.conf.rpmsave
 Erasing : httpd-tools-2.4.6-67.el7.centos.6.x86_64 2/2
 Verifying : httpd-2.4.6-67.el7.centos.6.x86_64 1/2
 Verifying : httpd-tools-2.4.6-67.el7.centos.6.x86_64 2/2

Removed:
 httpd-tools.x86_64 0:2.4.6-67.el7.centos.6

Dependency Removed:
 httpd.x86_64 0:2.4.6-67.el7.centos.6

Complete!

Udvidet læsning:

发表 评论

您的邮箱地址不会被公开。必填项已用*标注

Rul til top