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:
Forhåbentlig vil artiklen "Installation af VestaCP-prompt: Følgende pakker er allerede installeret: httpd centos 7", som er delt på Chen Weiliangs blog ( https://www.chenweiliang.com/ ), være nyttig for dig.
Del gerne dette artikellink: https://www.chenweiliang.com/cwl-691.html



