我的安装路径是:C:\Program Files\Apache Software Foundation\Apache2.2
1、打开cmd定位到:C:\Program Files\Apache Software Foundation\Apache2.2\bin
2、输入httpd.exe -k install -n apache2
然后就可以命令行启动
net start apache2(注意这里是apache2不是apache2.2)
1、打开cmd定位到:C:\Program Files\Apache Software Foundation\Apache2.2\bin
2、输入httpd.exe -k install -n apache2
然后就可以命令行启动
net start apache2(注意这里是apache2不是apache2.2)