首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >安装xampp后运行apache时出错

安装xampp后运行apache时出错
EN

Stack Overflow用户
提问于 2014-06-07 21:04:46
回答 2查看 110.4K关注 0票数 26

我在win7上安装了xampp,在启动apache时得到这个错误。我取消选中skype,但没有任何变化。如何查找正在使用端口80的设备?我该怎么解决这个问题呢?我没有运行另一台服务器。

代码语言:javascript
复制
update this is the error. I click on start and  get this problem
    Error: Apache shutdown unexpectedly.
11:27:19 PM  [Apache]   This may be due to a blocked port, missing dependencies, 
11:27:19 PM  [Apache]   improper privileges, a crash, or a shutdown by another method.
11:27:19 PM  [Apache]   Press the Logs button to view error logs and check
11:27:19 PM  [Apache]   the Windows Event Viewer for more clues
11:27:19 PM  [Apache]   If you need more help, copy and post this
11:27:19 PM  [Apache]   entire log window on the forums

下面的链接帮不了我

Why won't Apache start in XAMPP installation?

这是错误日志

代码语言:javascript
复制
[Sat Jun 07 22:36:53.823331 2014] [ssl:warn] [pid 6048:tid 236] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 07 22:36:54.084345 2014] [ssl:warn] [pid 6048:tid 236] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 07 22:36:55.240412 2014] [mpm_winnt:notice] [pid 6048:tid 236] AH00455: Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11 configured -- resuming normal operations
[Sat Jun 07 22:36:55.241412 2014] [mpm_winnt:notice] [pid 6048:tid 236] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Sat Jun 07 22:36:55.241412 2014] [core:notice] [pid 6048:tid 236] AH00094: Command line: 'E:\\xampp\\apache\\bin\\httpd.exe -d E:/xampp/apache'
[Sat Jun 07 22:36:55.339417 2014] [mpm_winnt:notice] [pid 6048:tid 236] AH00418: Parent: Created child process 1840
[Sat Jun 07 22:36:55.950452 2014] [ssl:warn] [pid 1840:tid 248] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 07 22:36:56.202467 2014] [ssl:warn] [pid 1840:tid 248] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 07 22:36:56.299472 2014] [mpm_winnt:notice] [pid 1840:tid 248] AH00354: Child: Starting 150 worker threads.
EN

回答 2

Stack Overflow用户

发布于 2015-12-07 14:23:38

我认为杀死使用该端口的进程比在配置文件中更改端口更容易处理。以下是如何在Windows中执行此操作。对于Linux,您可以遵循相同的步骤,但可以使用不同的命令。以管理员身份运行命令提示符。然后键入以下命令,找出使用该端口的所有进程。

代码语言:javascript
复制
netstat -ano

将会有大量进程使用不同的端口。因此,为了只获取端口,我们需要使用如下所示的findstr (这里我使用端口80)

代码语言:javascript
复制
netstat -ano | findstr 80

这将为您提供如下结果

代码语言:javascript
复制
TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       7964

最后一个数字是进程的进程ID。所以我们要做的就是使用PID终止进程,我们可以使用taskkill命令。

代码语言:javascript
复制
taskkill /PID 7964 /F

再次运行您的服务器。这一次它将能够运行。这也可以用于Mysql服务器。

票数 3
EN

Stack Overflow用户

发布于 2020-03-23 04:08:21

将主端口从80更改为8080后,您必须更改XAMPP控制面板中的配置,如下图所示:

1)

2)

3)

然后重新启动服务,就这样了!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24097498

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档