我想在Windows 10系统上安装Apache 2服务器。官方文档(https://httpd.apache.org/docs/2.4/platform/windows.html)指出:
“ Apache HTTP Server项目本身不提供软件的二进制发行版,仅提供源代码”
要拥有Apache HTTP Server的二进制文件,必须自己编译或从第三方提供的发行版中获取。这些发行版通常将Apache与PHP和MySQL捆绑在一起。
问题是:
建议使用哪种发行版来安装独立的Apache 2服务器,并执行哪些步骤?
答案 0 :(得分:0)
我已经使用了Apache 2官方文档(https://httpd.apache.org/docs/2.4/platform/windows.html)中指出的Apache Lounge发行版。
以下是使用Apache Lounge发行版在Windows上安装Apache的步骤:
执行 httpd.exe
PS > C:\Apache24\bin\httpd.exe
或
PS > cd C:\Apache24\bin
PS > .\install.exe
在brwoser中打开 http:\ localhost 或 http:\ 127.0.0.1
将显示消息有效!
以管理员身份打开 Windows Power Shell
PS > Start-Process PowerShell -Verb RunAs
安装服务
PS > cd C:\Apache24\bin
PS > .\httpd.exe -k install
启动服务
PS > .\httpd.exe -k start
或通过服务管理员
PS > services.msc
Select Apache2.4 > Right-click > Start
在brwoser中打开 http:\ localhost 或 http:\ 127.0.0.1
将显示消息有效!