|  | 
 
 
 楼主|
发表于 2022-11-19 13:48:39
|
显示全部楼层 
| 本帖最后由 2028655780 于 2022-11-19 13:51 编辑 
 centos的,可以过宝塔的检测
 
 复制代码
[root@localhost /]# rpm -qa|grep httpd                                                                        #查看已安装的Apache服务
[root@localhost /]# yum remove -y httpd                                                                        #卸载服务
[root@localhost /]# rpm -qa|grep httpd                                                        #验证一下,还有一个未卸载
httpd-tools-2.4.6-97.el7.centos.5.x86_64
[root@localhost /]# rpm -e httpd-tools-2.4.6-97.el7.centos.5.x86_64                #重新卸载一下
[root@localhost /]# rpm -qa|grep httpd                                                                        #再验证一下
[root@localhost /]# whereis httpd                                                                                #查找安装路径
httpd: /etc/httpd
[root@localhost /]# rm -rf /etc/httpd                                                                        #删除安装路径
[root@localhost /]# whereis httpd                                                                                #验证一下
httpd:[root@localhost /]#                                                                                                #出现这个,卸载完成
 | 
 |