- 确保IIS没有运行,如果IIS占用了80端口,你需要让Apache使用另一个,否则会冲突的。
- 安装Apache (direct download link) . 查看apache 站点 获得最新版本。
- 确保Apache httpd服务在安装后启动,运行C:/Program Files/Apache Software Foundation/Apache2.2/bin/ApacheMonitor.exe 确保启动正常。
- 安装Python。
- 安装TileCache。
- 解压tilecache,复制其内容到C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/.中。
- 修改C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/tilecache.cgi 文件第一行为#!C:/Python25/python.exe -u。
- 将C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/index.html 复制到C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/ ,这将会覆盖缺省的index.html文件。
- 修改index.html的第28行:
layer = new OpenLayers.Layer.WMS( “VMap0″, “/cgi-bin/tilecache.cgi?”, {layers: ‘basic’, format: ‘image/png’ } ); - 好了,现在浏览http://localhost/,其缓存将存储在c:/tmp/tilecache。你现在可以编辑tilecache.cfg了。
在Apache上安装TileCache
最新推荐文章于 2016-01-21 17:13:00 发布