Ubuntu下彻底卸载apache2

解决问题:在CentOS服务器上卸载默认安装的Apache CentOS是一种广泛使用的Linux发行版,在默认安装过程中,它会自带Apache作为默认的Web服务器。如果您需要卸载默认安装的Apache,并使用其他Web服务器,本文将为您提供详细的解决方案。如果您计划使用其他Web服务器替代Apache,可以在此步骤中安装所需的软件包。要卸载Apache之前,首先需要停止正在运行的Apache服务。第一条命令将删除Apache的配置文件,第二条命令将删除Apache默认的网站目录。完成上述步骤后,您的系统将不再包含默认安装的Apache。 阅读详情

Ubuntu下彻底卸载apache2

  最近老是在换项目,在做环境,删除原有不用的,有时候再装出错,下面就apache2的完全卸载命令贴出来,供大家参考!

  1. 删除apache
代码:
$ sudo apt-get --purge remove apache-common
$ sudo apt-get --purge remove apache

2.找到没有删除掉的配置文件,一并删除

代码:
$ sudo find /etc -name "*apache*" |xargs  rm -rf 

$ sudo rm -rf /var/www

$sudo rm -rf /etc/libapache2-mod-jk

3.删除关联,这样就可以再次用apt-get install apache2 重装了

#dpkg -l |grep apache2|awk '{print $2}'|xargs dpkg -P


我的ok了大家可以试试!!!

Ubuntu彻底卸载MySQL、Apache2和Php的方法教程 主要给大家介绍了关于在Ubuntu系统下彻底卸载MySQL、Apache2和Php的方法教程,文中通过示例代码介绍的非常详细,对大家具有一定的参考学习价值,需要的朋友们下面跟着小编来一起看看吧。 立即下载

相关推荐

从零构建:毫米波雷达生命信号检测系统的Matlab仿真全流程解析

本文详细解析了毫米波雷达生命信号检测系统的Matlab仿真全流程,涵盖原理、信号处理链路设计及算法优化策略。通过FMCW雷达技术,实现非接触式呼吸心跳信号检测,结合Matlab代码示例展示距离FFT、相位提取与信号分离等关键步骤,为医疗监护和智能家居应用提供实用指南。

weixin_29303701的博客 357

Apache的卸载方法

删除Apache安装目录。在Windows上,默认安装目录为`C:\Program Files\Apache Software Foundation\Apache`,进入控制面板,管理工具,服务,看下apache程序的服务名,如apache,然后使用CMD打开命令符窗口,依次输入以下命令。删除Apache安装目录,在Linux上,默认安装目录为`/etc/apache2`。卸载命令apache。

2201_75715995的博客 5569

RPN 解析

RPN全称是Region Proposal Network,Region Proposal的中文意思是“区域选取”,也就是“提取候选框”的意思,所以RPN就是用来提取候选框的网络; 1. RPN的意义 RPN第一次出现在世人眼中是在Faster RCNN这个结构中,专门用来提取候选框,在RCNN和Fast RCNN等物体检测架构中,用来提取候选框的方法通常是Selective Se

lanran2的博客 10万+

【Apache2】彻底删除 Apache2 服务器

要彻底删除 Apache2 服务器,需要卸载 Apache2 软件包并删除其配置文件和数据文件。这些命令会删除 Apache2 的配置文件和默认的网站文件目录。请注意,这些操作是不可逆的,删除的文件将无法恢复。这个命令会删除安装 Apache2 时可能安装的依赖项中不再需要的软件包。这个命令会删除 Apache2 软件包及其相关的配置文件。完成上述步骤后,Apache2 应该已经被彻底删除了。

weixin_45055317的博客 2124

精通DC-DC变换器:Boost升压电路全解析

Boost升压变换器是一种将低直流电压转换为高直流电压的常用电路。其核心工作原理是通过电感储能:开关导通时电感充电,关断时电感与电源串联向负载供电。关键公式表明输出电压Vo=Vi/(1-D),占空比D越大,升压比越高。变换器工作时会产生电感电流纹波和输出电压纹波,需合理选择电感和电容参数。开关管和二极管需承受完整的输出电压,对元器件选型要求较高。理解这些原理是设计高效升压电源的基础。

2511_92918351的博客 3711

华为云HCS解决方案笔记HUAWEI CLOUD Stack【面试篇】

华为云解决方案介绍、华为云服务介绍,华为云网络平面规划等

weixin_48375618的博客 1万+

如何安装apache和卸载apache(转载)

卸载php apache

huyr123的专栏 3175

ZEMAX优化方法---【Zemax学习】

在光学系统自动设计中,优化设计是光学设计中的重要阶段,也是ZEMAX软件的核心功能,涉及评价函数、权因子、阻尼因子等重要概念。在常用的阻尼最小二乘法优化设计的基础上,ZEMAX给我们提供了三种优化选择:Optimization(局部优化)、Global Search(全局优化)和 Hammer Optimization(锤形优化)。

yh的博客 4452

Apache安装、配置、卸载

下载安装配置Apache: 1.将Apache官方下载地址:https://www.apachelounge.com/download/,复制到浏览器打开,选择系统支持的版本下载,如: 2.将下载好的压缩包剪贴到C盘根目录(这里为了方便,建议放到C盘新建英文目录下,如果使用中文和放到其他盘,后面配置可能会失败),如: 3.这里使用命令窗口进行安装,实际工作中可选择集成环境进行安装。首选找到命令窗口,找不到的可以在左下角搜索中搜 命令 就会出现,然后鼠标右键以管理员权限运行命令窗口,如: 4.在弹出的命

专研前端,探索后端 4485

分享一下使用Xilinx FPGA驱动MIPI DSI LCD屏的心路历程

分享一下调试用Xilinx FPGA驱动MIPI DSI LCD屏的心路历程,看到的朋友们,可以避免继续踩坑。

haoxingheng的专栏 5017

ABAP CDS Time Functions 全面解析:用 TIMS_IS_VALID 护航时刻字段的正确性

摘要:本文深入解析ABAP CDS时间函数TIMS_IS_VALID的应用,重点介绍其在企业系统时间字段校验中的关键作用。文章指出无效时间数据会导致业务流程混乱,而CDS层校验能有效减少重复逻辑。详细说明TIMS类型格式要求、空值处理规则,并提供两种工程实现方案:在CDS视图中直接派生校验列,或通过ABAP SQL在内存表中批量验证。最后给出可直接运行的代码示例,包括一个ABAP报表演示内存表验证,以及一个CDS View Entity实现系统时间自动映射与校验,帮助开发者在业务场景中快速落地时间校验功能。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 194

ubuntu彻底卸载apache2、mysql、php(各版本通用)

转载:https://blog.youkuaiyun.com/qf0129/article/details/52670149 ubuntu彻底卸载apache2、mysql、php(各版本通用) 2016年09月26日 14:45:25 QF_ 阅读数 1931 一、卸载删除 mysql sudo apt-get autoremove –purge mysql-server-5.0 sudo apt-...

倦鸟归时 1564

【ROS2】从yaml文件中读取参数配置

ROS2:从yaml中读取参数,到节点;使用C++演示参数的增、删、改、查、遍历、监听变化

郭老二 1285

ubuntu彻底卸载mysql_Ubuntu彻底卸载MySQL、Apache2和Php的方法教程

前言我们在安装时候使用一键安装非常方便,但是想卸载的时候总是卸载不干净,下面本文就来给大家关于Ubuntu彻底卸载MySQL、Apache2和Php的相关内容,分享出来供大家参考学习,话不多说,来一起看看详细的介绍:一、卸载删除 mysql1 sudo apt-get autoremove --purge mysql-server-5.02 sudo apt-get remove mysql-se...

weixin_39646658的博客 165

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

ubuntu20.04 彻底卸载apache2安装nginx

#1 终止apache运行 sudo service apache2 stop #2. 删除apache $ sudo apt-get --purge remove apache2 $ sudo apt-get --purge remove apache2.2-common $ sudo apt-get autoremove #3. 找到没有删除掉的配置文件,一并删除 $ sudo find /etc -name "*apache*" -exec rm -rf {} \; $ sudo rm -rf

m0_38026518的博客 1711

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

彻底删除php5,Ubuntu彻底卸载MySQL、Apache2和Php的方法教程

前言我们在安装时候使用一键安装非常方便,但是想卸载的时候总是卸载不干净,下面本文就来给大家关于Ubuntu彻底卸载MySQL、Apache2和Php的相关内容,分享出来供大家参考学习,话不多说,来一起看看详细的介绍:一、卸载删除 mysql1 sudo apt-get autoremove --purge mysql-server-5.02 sudo apt-get remove mysql-se...

weixin_32258195的博客 323

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

ubuntu服务器卸载mysql_Ubuntu彻底卸载MySQL、Apache2和Php的方法教程

Ubuntu彻底卸载MySQL、Apache2和Php的方法教程发布时间:2020-10-05 18:27:18来源:脚本之家阅读:64作者:一夜长风栏目:服务器前言我们在安装时候使用一键安装非常方便,但是想卸载的时候总是卸载不干净,下面本文就来给大家关于Ubuntu彻底卸载MySQL、Apache2和Php的相关内容,分享出来供大家参考学习,话不多说,来一起看看详细的介绍:一、卸载删除 mysq...

weixin_39861498的博客 207

iis7卸载php,Ubuntu彻底卸载MySQL、Apache2和Php的方法教程

前言我们在安装时候使用一键安装非常方便,但是想卸载的时候总是卸载不干净,下面本文就来给大家关于Ubuntu彻底卸载MySQL、Apache2和Php的相关内容,分享出来供大家参考学习,话不多说,来一起看看详细的介绍:一、卸载删除 mysql1 sudo apt-get autoremove --purge mysql-server-5.02 sudo apt-get remove mysql-se...

weixin_33993891的博客 193

ubuntu 彻底卸载apache2

1. 删除apache $ sudo apt-get --purge remove apache-common $ sudo apt-get --purge remove apache 2.找到没有删除掉的配置文件,一并删除 $ sudo find /etc -name "*apache*" |xargs  rm -rf $ sudo rm -rf /va

keeper42的博客 1031

ubuntu 彻底卸载apache2

最近老是在换项目,在做环境,删除原有不用的,有时候再装出错,下面就apache2的完全卸载命令贴出来,供大家参考! 1. 删除apache 代码: $ sudo apt-get --purge remove apache-common $ sudo apt-get --purge remove apache 2.找到没有删除掉的配置文件,一并删除 代码:

dazhi_100的专栏 1万+

卸载apache mysql_ubuntu 彻底卸载 apache2,php5和mysql

本以为ubuntu下一堆的命令,只要搜到正确的命令就可以了,没那么麻烦。操蛋的是,网上那么一大堆结果,也不知道随创出来的方法,根本没个好使的。整的我apache来来回回装卸了七八次。折腾两个多小时。最后在一个论坛上终于看到一个人的方法了。发现命令有点和别人不一样,就试了试,真好试了方法:sudo apt-get –purge remove apache2sudo apt-get –purge re...

weixin_42396174的博客 187

php卸载5.2,ubuntu彻底卸载apache2,php5和mysql

本以为ubuntu下一堆的命令,只要搜到正确的命令就可以了,没那么麻烦。操蛋的是,网上那么一大堆结果,也不知道随创出来的方法,根本没个好使的。整的我apache来来回回装卸了七八次。折腾两个多小时。最后在一个论坛上终于看到一个人的方法了。发现命令有点和别人不一样,就试了试,真好试了方法:sudo apt-get –purge remove apache2sudo apt-get –purge re...

weixin_39753747的博客 158

ubuntu 中彻底卸载php,Ubuntu- 彻底干净卸载MySQL、Apache2、Php的方法

搜索热词1 sudo apt-get autoremove --purge MysqL-server-5.02 sudo apt-get remove MysqL-server3 sudo apt-get autoremove MysqL-server4 sudo apt-get remove MysqL-common (非常重要)上面的其实有一些是多余的,建议还是按照顺序执行一遍清理残留数据:d...

weixin_28872283的博客 552
上一篇: Ubuntu下彻底卸载mysql
下一篇: Memcache VS Memcached VS MemcacheDB
chmo2011
博客等级 码龄15年 2粉丝 22原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值