点击了uninstall_services.bat,删除wamp的服务怎么办?

手抖,不小心点击了uninstall_services.bat,发现wamp的图标一直是红的。。。猜测是不是卸载了服务。

1.在键盘上按“WIN+R”快捷键,打开运行界面,输入“services.msc”指令

发现apche和mysql服务不见了。

2.然后打开uninstall_services.bat

NET STOP wampapache64
sc delete wampapache64
NET STOP wampmysqld64
sc delete wampmysqld64

wampmanager.exe -quit -id={wampserver}

发现确实是删除了服务。

3.去网上找都是建议卸载重装,但是因为数据都在不想去卸载,又挣扎了一下,左键图标发现apche里有server adminnistration可以安装服务,然后再重启下;同样的mysql也是这么做。

4.这时就正常了。

你可能感兴趣的:(php,wamp)