【发布时间】:2015-02-04 15:29:03
【问题描述】:
我正在使用 XAMPP,我可以启动 Apache,但是,MySQL (phpMyAdmin) 启动!
当我开始时,我得到了这个错误;
10:07:49 [Apache] Error: Apache shutdown unexpectedly.
10:07:49 [Apache] This may be due to a blocked port, missing dependencies,
10:07:49 [Apache] improper privileges, a crash, or a shutdown by another method.
10:07:49 [Apache] Press the Logs button to view error logs and check
10:07:49 [Apache] the Windows Event Viewer for more clues
10:07:49 [Apache] If you need more help, copy and post this
10:07:49 [Apache] entire log window on the forums
我在上面搜索,然后在配置 -> 服务和端口设置中更改 Apache 的端口。我有;
Service name: Apache 2.4
Main port: 122
SSL port: 444
我还卸载了 Skype(Windows 8/10/Metro 版本)。没有任何工作。在我的 httpd.conf 文件中;
Listen 122
ServerName localhost:122
我通过apache_start.bat 启动它并获取;
(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 [::]:445
(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:445
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
请注意,所有日志文件都不存在! Skype 已卸载。
【问题讨论】:
-
检查端口是否被阻塞?
-
尝试以管理员身份运行
-
您在尝试启用 apache 时是否在运行 Skype?如果是这样,请更改 Skype 设置。
-
您不能拥有
localhost:80并监听端口122。选择要监听的端口。 -
好的,我做了一些修改:@Rizier123 -> 我检查了但我不确定这是否是好方法。 @Will-Campbell -> 是的,但仅此而已。 @iSaumya -> Skype 不在我的电脑上。 @Lorenz-Meyer -> 我现在有
Listen 122和ServerName localhost:122