全球主机交流论坛

标题: 删除DDP自带的web环境 [打印本页]

作者: 2028655780    时间: 2022-11-19 13:22
标题: 删除DDP自带的web环境
本帖最后由 2028655780 于 2022-11-19 13:51 编辑

DDP自带web环境,删除方法
作者: AaronYYDS    时间: 2022-11-19 13:25
本帖最后由 AaronYYDS 于 2022-11-19 13:36 编辑
  1. apt-get --purge remove apache2
  2. apt-get --purge remove apache2.2-common
  3. apt-get --purge remove apache2-doc
  4. apt-get --purge remove apache2-utils
  5. apt-get autoremove
复制代码

作者: 2028655780    时间: 2022-11-19 13:48
本帖最后由 2028655780 于 2022-11-19 13:51 编辑

centos的,可以过宝塔的检测

  1. [root@localhost /]# rpm -qa|grep httpd                                                                        #查看已安装的Apache服务

  2. [root@localhost /]# yum remove -y httpd                                                                        #卸载服务

  3. [root@localhost /]# rpm -qa|grep httpd                                                        #验证一下,还有一个未卸载
  4. httpd-tools-2.4.6-97.el7.centos.5.x86_64

  5. [root@localhost /]# rpm -e httpd-tools-2.4.6-97.el7.centos.5.x86_64                #重新卸载一下

  6. [root@localhost /]# rpm -qa|grep httpd                                                                        #再验证一下

  7. [root@localhost /]# whereis httpd                                                                                #查找安装路径
  8. httpd: /etc/httpd

  9. [root@localhost /]# rm -rf /etc/httpd                                                                        #删除安装路径

  10. [root@localhost /]# whereis httpd                                                                                #验证一下

  11. httpd:[root@localhost /]#                                                                                                #出现这个,卸载完成
复制代码

作者: liu    时间: 2022-11-19 14:20
还有自带环境的  怎么用 我也有台100g
作者: yangtse007    时间: 2022-11-19 19:47
本帖最后由 yangtse007 于 2022-11-20 12:08 编辑
AaronYYDS 发表于 2022-11-19 13:25


一:安装apache2

安装命令:sudo apt-get install apache2

启动/停止/重启apache2: service apache2 start/stop/restart

二: 卸载apache2

(1)之前卸载重新安装后找不到apache2.conf配置文件,测试使用一下方式卸载后可用。

    $ sudo apt-get --purge remove apache2
    $ sudo apt-get --purge remove apache2.2-common
    $ sudo apt-get autoremove
(2)(关键一步)找到没有删除掉的配置文件,一并删除

    $ sudo find /etc -name "*apache*" -exec rm -rf {} \;
    $ sudo rm -rf /var/www


这个可以用
作者: colla    时间: 2022-11-19 21:04
100G的盘还容不下这点空间吗
作者: AaronYYDS    时间: 2022-11-20 11:41
yangtse007 发表于 2022-11-19 19:47
debian 使用这个吗?

debian / ubuntu 都一样




欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/) Powered by Discuz! X3.4