如果我們的VPS安裝的Linux系統是 CentOS的 7,同時VPS供應商提供的不是很純淨的CentOS發行版,預設是安裝了Apache(CentOS中的httpd)。
這樣,在安裝VestaCP時,就會出現如下提示:
- “Following packages are already installed: httpd centos 7”
- (已經安裝了以下軟件套件: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.
解決方法
第1 步:運行以下命令
yum remove httpd
第2 步:安裝httpd刪除工具
在執行以下命令後:
yum remove httpd-tools
這可以嗎[是/否]: (詢問否安裝?)
輸入y 安裝,就能刪除掉CentOS 中的httpd ▼
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!
擴展閱讀:
希望陳溈亮博客( https://www.chenweiliang.com/ ) 分享的《安裝VestaCP提示:Following packages are already installed: httpd centos 7》,對您有幫助。



