卸载了 wampserver服务后怎么都启动不了,
解决办法:
管理员权限执行cmd 命令
httpd -n wampapache -k install
底下的 Errors reported here must be corrected before the service can be started. 不是错误提示,不要被误导
mysqld --install-manual wampmysqld
退出wampserver 重新启动 就可以了
(上面两行命令分别是从 wampserver内置的 apache和mysql 下的 wampserver.conf文件中复制过来的)
补充:
另外删除语句:
httpd -n wampapache -k uninstall
mysqld --remove wampmysqld
通过这种方式安装卸载apache服务 apache2.x.x\bin 目录下的php.ini快捷 会丢失,手动从php里面复制个过来就好了
*
另外 由于需要配置远程可以访问, 在httpd.conf 中 将
Require all denied 改为 Require all allow (实际上是 allowed,或者去掉这一段如下面代码)导致wampserver 无法启动
<Directory />
AllowOverride none
#Require all denied
</Directory>