window 7下安装apache(httpd 2.2.22)
Win32 Binary including OpenSSL 0.9.8t (MSI Installer)
http://mirror.atlanticmetro.net/apache//httpd/binaries/win32/httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
安装过程,只需要不断的点击下一步。直到出现以下内容:

如上图,填写Network Domain和Server Name即可。
在命令行下启动httpd的方法:
首先切换到apache的bin目录,执行以下命令:
-------------------------------------------------------------------------
由于本人机器80端口被占用。在启动httpd时抛出以下错误:
修改监听端口号为88
然后,重启apache。即可。
当然,本人需要访问的URL是http://localhost:88
我们访问到的是默认页面:Apache2.2\htdocs\index.html
安装过程,只需要不断的点击下一步。直到出现以下内容:

如上图,填写Network Domain和Server Name即可。
在命令行下启动httpd的方法:
首先切换到apache的bin目录,执行以下命令:
httpd -k start如果不出意外的话,apache已经安装成功了。打开http://localhost 可以看到 “It works”
-------------------------------------------------------------------------
由于本人机器80端口被占用。在启动httpd时抛出以下错误:
C:\wamp\Apache2.2\bin>httpd -k start (OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。 : make_sock: cou ld not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs所以,需要打开Apache2.2\conf\httpd.conf
修改监听端口号为88
# # 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 127.0.0.1:88 Listen 88
然后,重启apache。即可。
当然,本人需要访问的URL是http://localhost:88
我们访问到的是默认页面:Apache2.2\htdocs\index.html
浙公网安备 33010602011771号