lnmp一鍵安裝的卸載
如果是lnmp一鍵安裝的
進入安裝包目錄
[root@www home]# cd lnmp0.9-full
[root@www lnmp0.9-full]# ls
然後
[root@www lnmp0.9-full]# ./uninstall.sh
=========================================================================
LNMPV0.8 for CentOS/RadHat Linux VPS Written by Licess
=========================================================================
A tool to auto-compile & install Nginx+MySQL+PHP on Linux
For more information please visit http:/www.lnmp.org/
Please backup your mysql data and configure files first!!!!!
=========================================================================
Please backup your mysql data!!!!!
Press any key to start uninstall LNMP , please wait ……
按任意鍵就可以進行卸載。
=========================================================================
如果是自己一步一步配置的LNMP環境那麽
killall nginx*//終止nginx進程
/etc/init.d/mysql stop *//關閉mysql
killall mysqld *//終止mysql進程
/usr/local/php/sbin/php-fpm stop *//關閉php
killall php-cgi *//終止php-cgi進程
rm -rf /usr/local/php *//刪除php文件
rm -rf /usr/local/nginx *//刪除nginx文件
rm -rf /usr/local/mysql *//刪除mysql文件
rm -rf /usr/local/zend *//刪除zend文件
rm /etc/my.cnf *//刪除配置文件
rm /etc/init.d/mysql *//刪除mysql文件
rm /root/vhost.sh *//刪除配置虛擬主機腳本
rm /root/lnmp *//刪除lnmp文件夾
lnmp一鍵安裝的卸載