作者:淡漠少_341 | 来源:互联网 | 2023-05-17 18:51
Ifollowedthestepsinhttps:github.comoutoftimesunspotwikiAdding-Sunspot-search-to-Rails-in-
I followed the steps in https://github.com/outoftime/sunspot/wiki/Adding-Sunspot-search-to-Rails-in-5-minutes-or-less to install & set up Sunspot search in Rails in a Mac OS and it is ok.
In a Ubuntu server, there's connection refused error.
When I run
我按照https://github.com/outoftime/sunspot/wiki/Adding-Sunspot-search-to-Rails-in-5-minutes-or-less中的步骤在Mac中的Rails中安装和设置Sunspot搜索操作系统,没关系。在Ubuntu服务器中,存在连接拒绝错误。当我跑
rake sunspot:solr:start
and the proccess starts. The file sunspot-solr-development.pid
is created in /tmp/pids
. But when I try to reindex
并且过程开始了。文件sunspot-solr-development.pid在/ tmp / pids中创建。但是当我尝试重新索引时
rake sunspot:reindex
...
rake aborted!
Connection refused - connect(2)
I tried to run the commands with sudo
and gave permission 777
to the project files, but there's still error. Rails 3.0.8.
我尝试使用sudo运行命令并向项目文件授予了777权限,但仍然存在错误。 Rails 3.0.8。
Any ideas?
2 个解决方案