ytkah

  非特殊需要不要删除centos7中Apache等组件!首先查看centos中Apache版本(前面我们说了centos7删除PHPcentos7删除MariaDB,可能很多朋友会有疑问为什么要把所有组件都删了,因为要装服务器控制面板,方便傻瓜式操作)

# rpm -qa | grep httpd
或者
# yum list | grep httpd

  然后来卸载我的httpd,先要停止httpd服务

# systemctl stop httpd.service

  然后通过 rpm -e 或者yum -erase 命令都可以,不过rpm -e命名必须要自己先卸载依赖包,所以我用yum -erase命令卸载,命令如下:

# yum erase httpd.x86_64

  

显示
Loaded plugins: fastestmirror
No Match for argument: httpd.x86_64
No Packages marked for removal
查看一下有没完成 [root@ytkah]# rpm -qa | grep httpd httpd-tools-2.4.6-89.el7.centos.x86_64
还有残留,那就执行 rpm -e [root@ytkah]# rpm -e httpd-tools-2.4.6-89.el7.centos.x86_64
再查看一下 [root@ytkah]# rpm -qa | grep httpd

  这样就全部删除了

分类:

技术点:

相关文章:

  • 2021-12-17
  • 2022-02-14
  • 2021-11-16
  • 2022-01-02
  • 2021-11-13
  • 2022-12-23
猜你喜欢
  • 2021-11-28
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-06-17
  • 2022-12-23
相关资源
相似解决方案