apache/2.4.48(win64) 服务无法启动原因? (操作系统:WINDOWS SERVER 2019 DATACENTER)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache/2.4.48(win64) 服务无法启动原因? (操作系统:WINDOWS SERVER 2019 DATACENTER)相关的知识,希望对你有一定的参考价值。

启动wampache64服务:Windows不能在 本地计算机启动Apache24.特定服务错误代码1。apache_erro.log: AH00419: master_main: create child process failed. Windows日志 错误: httpd.exe,版本: 2.4.48.0,错误模块名称: ucrtbase.dll,版本: 10.0.17763.1490异常代码: 0xc0000409错误偏移量: 0x000000000006d288错误进程 ID: 0x33fc错误应用程序路径: J:\Apache24\bin\httpd.exe错误模块路径: C:\windows\System32\ucrtbase.dll[ Name] Application Error- EventID 1000 Keywords 0x80000000000000 1,在命令提示符(管理员)窗口中输入以下命令:无用for %i in (%windir%\system32\*.dll) do regsvr32.exe /s %ifor %i in (%windir%\system32\*.ocx) do regsvr32.exe /s %i2,TCP/IP协议-->高级-->WINS,关闭LMHOSTS(M);已经关闭,无用。3,查端口是否被占用,被占用的话改端口或关掉占用端口的服务;相关端口已改,相关服务已关闭,无用。4,安装WAMPSER前,all_vc_redist_x86_x64 运行库已经安装。无用。5,安装微软运行库,甚至安装VISUAL STUDIO,生怕运行库不全。无用。6,WINDOWS更新到最新,感觉WIN10很差。无用,只好先用phpSTUDY

看一下事件日志,看看是什么错误造成的,一般来说最常见的错误都是端口冲突造成的。追问

Test Port 80,且显示端口没有被占用,故无冲突。
事件日志在上面,EventID 1000
APACHE错误日志如下:
[Tue Aug 24 10:08:12.161234 2021] [mpm_winnt:crit] [pid 9964:tid 872] AH00419: master_main: create child process failed. Exiting.

参考技术A Server 版 win?
莫非启用了 http 服务?

如果是,Apache 的端口 可以指定 80以外
再重新启动 Apache 服务追问

WORLD WIDE WEB 发布服务已关闭

参考技术B 系统之家重装操作系统追问

才装的操作系统!

参考技术C aqui te amo

win10配置apache

1、下载Apache
首先下载文件,点击下载
2、安装Apache
我的路径 D:\\Apache24

打开D:\\Apache24\\conf目录下的httpd.conf文件

修改ServerRoot

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
Define SRVROOT "D:/Apache24"
ServerRoot "$SRVROOT"

修改端口号Listen 8080

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 8080

修改ServerName处对应的端口号

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName www.example.com:8080

3、安装Apache

管理员身份
依次执行

cmd
d:
cd D:\\Apache24\\bin
httpd.exe -k install -n "Apache24"
net start Apache24


4、测试是否安装成功
浏览器中输入http://localhost:8080/index.html

以上是关于apache/2.4.48(win64) 服务无法启动原因? (操作系统:WINDOWS SERVER 2019 DATACENTER)的主要内容,如果未能解决你的问题,请参考以下文章

win7 64 搭建 64 位 apache httpd php mysql

Win7系统64位环境下使用Apache——Apache2.4整合Tomcat与mod_jk

Win10 64位 Apache 2.4+MySQL 5.7+PHP 7环境搭建

如何在win10(64位系统)上安装apache服务器

如何在 win64位下安装 apache的 一个mod xsendfile

在 Win10 / Apache 2.4 / PHP 7.0.10 x64 下未加载 cURL