Apache HTTP Server windows环境下载安装启动,apacheserver
Apache HTTP Server windows环境下载安装启动,apacheserver
Apache官网 只提供了Linux环境下的HTTP Server。 如果要在win下运行,只能下载源码自己编译或者去第三方下载 http://httpd.apache.org/download.cgi点击进入http://httpd.apache.org/docs/current/platform/windows.html#down
这里是默认的几个第三方集成。我选择的ApacheHaus http://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC09
下载 但是安装apache前需要安装VC
安装完成后启动 httpd.exe 报错: syntax error on line 39 of xx\Apache24\conf\httpd.conf ServerRoot must be a valid directory 解决:将httpd.conf 的ServerRoot路径改为自己的。
启动后访问 http://localhost/ 显示页面
启动成功。
如果要以服务的形式启动,可以进入bin目录使用命令 加入服务:httpd -k install (管理员身份) 启动: httpd -k start
其他常用命令: 停止:httpd -k stop 重启:httpd -k restart 删除服务:http -k uninstall
或者启动ApacheMonitor.exe
评论暂时关闭