【问题标题】:Apache of CentOS 7.2 can not be uninstalledCentOS 7.2的Apache无法卸载
【发布时间】:2016-03-14 12:39:59
【问题描述】:

我想卸载CentOS 7.2的Apache,步骤如下:
1、# systemctl stop httpd.service //其实httpd没有运行
2、# rpm -qa|grep httpd //什么都没有,所以,使用:
# yum list|grep httpd //内容如下:

darkhttpd.x86_64                        1.11-1.el7                     epel     
httpd.x86_64                            2.4.6-40.el7.centos            base     
httpd-devel.x86_64                      2.4.6-40.el7.centos            base     
httpd-itk.x86_64                        2.4.7.01-5.el7                 epel     
httpd-manual.noarch                     2.4.6-40.el7.centos            base     
httpd-tools.x86_64                      2.4.6-40.el7.centos            base     
libmicrohttpd.i686                      0.9.33-2.el7                   base     
libmicrohttpd.x86_64                    0.9.33-2.el7                   base     
libmicrohttpd-devel.i686                0.9.33-2.el7                   base     
libmicrohttpd-devel.x86_64              0.9.33-2.el7                   base     
libmicrohttpd-doc.noarch                0.9.33-2.el7                   base     
lighttpd.x86_64                         1.4.39-1.el7                   epel     
lighttpd-fastcgi.x86_64                 1.4.39-1.el7                   epel     
lighttpd-mod_geoip.x86_64               1.4.39-1.el7                   epel     
lighttpd-mod_mysql_vhost.x86_64         1.4.39-1.el7                   epel     
opensips-httpd.x86_64                   1.10.5-3.el7                   epel     
owncloud-httpd.noarch                   8.0.10-1.el7                   epel     
python-sphinxcontrib-httpdomain.noarch  1.4.0-1.el7                    epel     
radicale-httpd.noarch                   1.1.1-1.el7                    epel     
viewvc-httpd-fcgi.noarch                1.1.24-1.el7                   epel     
viewvc-httpd-wsgi.noarch                1.1.24-1.el7                   epel     
web-assets-httpd.noarch                 5-1.el7                        epel   

3、# yum erase httpd.x86_64

Loaded plugins: langpacks
No Match for argument: httpd.x86_64
No Packages marked for removal

添加:

# yum info httpd

Loaded plugins: langpacks
Available Packages
Name        : httpd
Arch        : x86_64
Version     : 2.4.6
Release     : 40.el7.centos
Size        : 2.7 M
Repo        : base/7/x86_64
Summary     : Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and
            : extensible web server.

这是什么意思?

【问题讨论】:

    标签: linux apache centos


    【解决方案1】:

    你真的有 apache 吗? :)

    试试:

    yum info httpd
    

    并检查是否已经安装了 apache :)

    rpm -qa | grep apache - 应该找到包

    【讨论】:

    • 谢谢!我添加了# yum info httpd的结果,结果是什么意思?
    • 这意味着:软件包可用但尚未安装。你没有 apache :) 尝试安装(yum install httpd),在做 rpm -qa | grep http 和 yum info httpd - 你看到了差异 :) 最后 yum erase httpd 删除。
    猜你喜欢
    • 1970-01-01
    • 2018-12-07
    • 1970-01-01
    • 2017-04-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-02
    相关资源
    最近更新 更多