我正在遵循本指南,但是当我到达启动 tileserver 的部分时,会发生错误。
我在终端上执行了命令renderd -f -c /usr/local/etc/renderd.conf
,但出现以下消息:
“renderd [16156]:加载地图层‘默认’时出错:XML 文档格式不正确:未定义实体‘数据源设置’(在文件‘/path/to/mapnik-style/osm.xml’中遇到’在第 4060 行)”
我还是决定启动服务器sudo /etc/init.d/apache2 restart
一切顺利,没有致命错误。
我去 localhost/osm_tiles2/0/0/0.png 看看它是否有效,会发生什么:
未找到 在此服务器上未找到请求的 URL /osm_tiles2/0/0/0.png。