安装后,WAMP 服务器未在 Windows 10 上启动

After installation, WAMP server is not starting on Windows 10

已下载于:http://www.wampserver.com/en/

WAMPSERVER 64 位 (X64) 3.0.6

安装后,WAMP 服务器未在 Windows10 上启动。

错误日志如下:

State of services:

The service 'wampapache64' is NOT started EXIT error code:1066 Help message for error code 1066 is:

The service has returned a service-specific error code.

The service 'wampmysqld64' is started

The service 'wampmariadb64' is started

The service 'dnscache' is started

WampServer (Apache, PHP and MySQL) will not function properly if any service

'wampapache64'

'wampmysqld64'

'wampmariadb64'

'dnscache'

is not started.

是的,安装了 MSVC:

事件日志:

The Apache service named reported the following error: AH00015: Unable to open logs .

The Apache service named reported the following error: AH00451: no listening sockets available, shutting down .

The Apache service named reported the following error: (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:80 .

The Apache service named reported the following error: (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80 .

The wampapache64 service terminated with the following service-specific error: Incorrect function.

关于如何解决这个问题有什么想法吗?

终于找到了解决方案:

我用命令查看了80端口的使用情况,

cmd

netstat -ao

找到罪魁祸首

将端口从 80 更改为 8080 后

有效:

您可以尝试终止与 "nestat -ao" 命令结果中提到的具有相同 PID 的任务。 要终止任务,请以管理员身份打开命令提示符, 命令:taskkill /pid /f

这里的/f是用来强制结束任务的。 希望这有助于...

您可以尝试重启系统,如果问题依旧...

对于像我这样偶然发现此页面的新手:

如果您添加一个虚拟主机,其绝对路径包含 windows-默认的“\”而不是 linux-友好的“/”作为分隔符,您将收到几乎相同的消息.因此,如果您从 windows 资源管理器复制粘贴绝对路径,这可能就是问题所在。仅更正 vhosts 文件并重新启动所有 services/refreshing 对我来说是不够的,我不得不从 vhosts 文件中完全删除 vhost 并使用主页 "add a virtualhost" 对话框重新添加,然后刷新 WAMP。

我尝试了很多东西,包括这个页面上的所有东西,但没有任何效果。问题是: Microsoft iis 运行ning 作为 Web 服务器。 停止它,在大多数情况下(并非全部)它会起作用。

我写了一个批处理文件来查看 iis 的状态并停止它。 创建一个 .txt 文件并将以下代码放入其中并将其重命名为任何 .bat

运行 它并选择选项 2。 或者,您也可以在 CMD window 中将 运行 作为两个命令(更大代码中选项 2 的本质)来停止 iis:

cd %windir%\system32\
iisreset /stop

重新启动您的 WAMP 服务器。

更多选项的完整代码(如果有更多选项,请在下面的代码框中向下滚动):

ECHO OFF
CLS
:MENU
ECHO.
ECHO==================================================================
ECHO.
ECHO   ===============================
ECHO    PRESS 1, 2, 3, 4 or 5 to EXIT   
ECHO   ===============================
ECHO.
ECHO 1 - STATUS of iis
ECHO 2 - STOP iis
ECHO 3 - START iis
ECHO 4 - RESTART iis
ECHO 5 - EXIT
ECHO.
SET /P M=Type 1, 2, 3, 4, or 5 then press ENTER:
ECHO.
ECHO==================================================================

IF %M%==1 GOTO 1
IF %M%==2 GOTO 2
IF %M%==3 GOTO 3
IF %M%==4 GOTO 4
IF %M%==5 GOTO EOF

:1
cd %windir%\system32\
iisreset  /status
GOTO MENU

:2
cd %windir%\system32\
iisreset /stop
GOTO MENU

:3
cd %windir%\system32\
iisreset /start
GOTO MENU

:4
cd %windir%\system32\
iisreset /restart
GOTO MENU