Apache HTTP Server windows环境下载安装启动
2015-07-28 16:13
369 查看
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
如果要在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
相关文章推荐
- 博客搬到了http://xianglong.me
- js实现拖拽(参考网络)
- 网络配置和文件服务器
- ***工具
- iOS开发网络数据之AFNetworking使用
- [stm32] SIM808模块之发短信\GPS\TCP\HTTP研究
- app 常见网络性能
- 网络安全协议比较(PKI SSH SSL SET)
- 如何解决XMLHttpRequest cannot load file~~~~~~~Origin 'null' is therefore not allowed access
- 网络攻击技术——Broken authentication
- ASIHTTPRequest异步请求
- HttpClient设置代理
- http及https了解
- wcf中netTcpBinding的元素构成
- [知识点]网络流之转换对偶图
- 网络编程系列之四 条件
- HTTP Streaming with FFMpeg and an Open Source Segmenter
- 如何实现基于tcp进行http交互
- 一种面向对象的TCP/IP中间件
- linux_c 网络开发日记(3)系统调用方式访问文件