关于xampp中的apache一直报错的情况解决心得

在安装完成xampp之后,打开xampp,但是在点击Start之后,apache一直报错,错误如下:
关于xampp中的apache一直报错的情况解决心得
14:02:18 [Apache] Error: Apache shutdown unexpectedly.
14:02:18 [Apache] This may be due to a blocked port, missing dependencies,
14:02:18 [Apache] improper privileges, a crash, or a shutdown by another method.
14:02:18 [Apache] Press the Logs button to view error logs and check
14:02:18 [Apache] the Windows Event Viewer for more clues
14:02:18 [Apache] If you need more help, copy and post this
14:02:18 [Apache] entire log window on the forums

很头疼,昨晚上各种百度寻找方法,不过都是一些让我改端口号之类的,可是试了很多次,还是没有多大效果,今天中午又继续搞,后来发现,其实很简单,我的总结如下:在打开xampp之前,鼠标右击单键xampp,选择“以管理员身份运行,如果还没有效果,进入apache中的config->Apache(httpd.conf)将端口号80改成其他的,如81,修改完成之后,再点击右上角的config ->Service and port Setting 将80改为81,如下图:关于xampp中的apache一直报错的情况解决心得

**最后关闭xampp,重新启动,注意:仍要以管理员身份运动,**不然无法得到相应权限,好了相应的apache无法启动的总结就到这里。