• 欢迎访问趣尚博客、分享互联网、软件、编程、创业、英语、VPS 推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您喜欢我的博客,那么请使用Ctrl+D 收藏吧!

ubuntu完整卸载PHP mysql nginx

PHP qushang 3年前 (2017-12-09) 770次浏览

卸载nginx

sudo apt-get purge nginx
sudo apt-get purge nginx-common
或者 sudo apt-get remove nginx-core nginx-full nginx-light nginx-extras nginx-naxsi nginx-common

卸载PHP

sudo apt-get purge php7.*
sudo apt-get purge php7.0-common 或者
sudo apt-get install ppa-purge
sudo ppa-purge ppa:ondrej/php-7.0

卸载mysql

<code><span class="pln">service mysql stop
killall </span><span class="pun">-</span><span class="pln">KILL mysql mysqld_safe mysqld
apt</span><span class="pun">-</span><span class="pln">get </span><span class="pun">--</span><span class="pln">yes purge mysql</span><span class="pun">-</span><span class="pln">server mysql</span><span class="pun">-</span><span class="pln">client
apt</span><span class="pun">-</span><span class="pln">get </span><span class="pun">--</span><span class="pln">yes autoremove </span><span class="pun">--</span><span class="pln">purge
apt</span><span class="pun">-</span><span class="pln">get autoclean
deluser </span><span class="pun">--</span><span class="pln">remove</span><span class="pun">-</span><span class="pln">home mysql
delgroup mysql
rm </span><span class="pun">-</span><span class="pln">rf </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">apparmor</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">abstractions</span><span class="pun">/</span><span class="pln">mysql </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">apparmor</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">cache</span><span class="pun">/</span><span class="pln">usr</span><span class="pun">.</span><span class="pln">sbin</span><span class="pun">.</span><span class="pln">mysqld </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">mysql </span><span class="pun">/</span><span class="pln">var</span><span class="pun">/</span><span class="pln">lib</span><span class="pun">/</span><span class="pln">mysql </span><span class="pun">/</span><span class="pln">var</span><span class="pun">/</span><span class="pln">log</span><span class="pun">/</span><span class="pln">mysql</span><span class="pun">*</span> <span class="pun">/</span><span class="pln">var</span><span class="pun">/</span><span class="pln">log</span><span class="pun">/</span><span class="pln">upstart</span><span class="pun">/</span><span class="pln">mysql</span><span class="pun">.</span><span class="pln">log</span><span class="pun">*</span> <span class="pun">/</span><span class="pln">var</span><span class="pun">/</span><span class="pln">run</span><span class="pun">/</span><span class="pln">mysqld</span></code>

极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:ubuntu完整卸载PHP mysql nginx
喜欢 (0)
[399397742@qq.com]
分享 (0)