我按照https://github.com/outoftime/sunspot/wiki/Adding-Sunspot-search-to-Rails-in-5-minutes-or-less中的步骤在 Mac 的 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。
有任何想法吗?