【发布时间】:2011-06-24 23:58:42
【问题描述】:
我按照https://github.com/outoftime/sunspot/wiki/Adding-Sunspot-search-to-Rails-in-5-minutes-or-less 中的步骤在 Mac OS 的 Rails 中安装和设置 Sunspot 搜索,一切正常。
在 Ubuntu 服务器中,出现连接被拒绝错误。
当我跑步时
rake sunspot:solr:start
然后进程开始。文件sunspot-solr-development.pid 在/tmp/pids 中创建。
但是当我尝试重新索引时
rake sunspot:reindex
...
rake aborted!
Connection refused - connect(2)
我尝试使用sudo 运行命令并授予项目文件777 权限,但仍然有错误。
导轨 3.0.8。
有什么想法吗?
【问题讨论】:
-
netstat -anp | grep <name of the server>显示什么?
标签: ruby-on-rails sunspot sunspot-rails