如果是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 ……
===========================================
/etc/init.d/mysql stop *//关闭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 -rf /etc/init.d/mysql *//删除mysql文件
rm -rf /root/vhost.sh *//删除配置虚拟主机脚本
rm -rf /root/lnmp *//删除lnmp文件夹