我正在尝试在我的ubuntu14上安装POI Data provider,文档有点旧,但是我已经安装好了,没有任何问题。
当我尝试测试我的启用码:http://localhost/poi_dp/radial_search.php?lat=1&lon=1&category=test_poi时,我得到一个空网页,在javascript控制台中出现以下错误:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)当我列出我的进程时,我得到了这个: ps ax | grep 'postgres|mongo|apache2‘
965 ? Ssl 0:04 /usr/bin/mongod --config /etc/mongod.conf
15480 ? S 0:00 /usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c config_file=/etc/postgresql/9.3/main/postgresql.conf
15482 ? Ss 0:00 postgres: checkpointer process
15483 ? Ss 0:00 postgres: writer process
15484 ? Ss 0:00 postgres: wal writer process
15485 ? Ss 0:00 postgres: autovacuum launcher process
15486 ? Ss 0:00 postgres: stats collector process
16161 ? Ss 0:00 /usr/sbin/apache2 -k start
16164 ? S 0:00 /usr/sbin/apache2 -k start
16165 ? S 0:00 /usr/sbin/apache2 -k start
16166 ? S 0:00 /usr/sbin/apache2 -k start
16167 ? S 0:00 /usr/sbin/apache2 -k start
16168 ? S 0:00 /usr/sbin/apache2 -k start
16188 ? S 0:00 /usr/sbin/apache2 -k start
16419 pts/4 S+ 0:00 grep --color=auto postgres\|mongo\|apache2何时验证postgres sql表
$ psql -U gisuser poidatabase
poidatabase=> SELECT count(*) FROM fw_core;我像预期的那样读到了4。
但是当我尝试验证mongo db时:
$ mongo
> use poi_db
> db.collections我只得到了"poi_db.collections“,而没有: db.collections命令应该列出由安装创建的5个POI数据组件集合: fw_contact、fw_marker、fw_media、fw_relationships和fw_time。
有什么问题吗?有什么想法吗?谢谢。
发布于 2015-08-24 22:52:52
关于db.collections不返回任何内容的问题,try命令如下:
$ mongo
> use poi_db
> show collections发布于 2015-10-22 20:01:56
这些明显的问题已在推送到GitHub https://github.com/Chiru/FIWARE-POIDataProvider.git的新版本中得到更正。有关安装信息,请参阅更新的指南http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/POI_Data_Provider_-_Installation_and_Administration_Guide。此外,例如在健全检查过程中的错误已经得到纠正。(下面的另一个答案涉及健全性检查中的错误。)
https://stackoverflow.com/questions/32154314
复制相似问题