windows apache httpd
download:
http://httpd.apache.org/
下载windows版本
httpd-2.4.25-x64-vc14-r1.zip
apache hpptd 需要vc14支持
下载vc14_x64.zip并安装
install:
先安装vc14_x64.zip
解压httpd-2.4.25-x64-vc14-r1.zip至某个文件夹,比如D:\soft\Apache24
修改配置文件 D:\soft\Apache24\conf\httpd.conf
Define SRVROOT "/Apache24" 修改为 Define SRVROOT "D:/soft/Apache24"
Listen 80 修改为Listen 8080
ServerName localhost:80  修改为 ServerName localhost:8080
输入如下命令
D:\soft\Apache24\bin>httpd.exe -k install -n "Apache24"
Installing the 'Apache24' service
The 'Apache24' service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
则表示安装成功
运行:
双击 D:\soft\Apache24\bin\ApacheMonitor.exe
看apache托盘图标 start apache即可
访问 http://localhost:8080/会显示主页
                    
                
                
            
        
浙公网安备 33010602011771号