安装apachesudoapt-getinstallapache2启动,停止,重启apachesudo/etc/init.d/apache2startsudo/etc/init.d/apache2stopsudo/etc/init.d/apache2restart卸载apachesudoapt-get--purgeremoveapache-commonsudoapt-get--purgeremoveapache删除apache的配置文件注意别把有用的文件给删除啦,比如下面var/www中的文件如果有用就别运行这条命令sudofind/etc-name"*apache*"xargsrm-rfsu