title: Can't connect to Sunspot server in Ubuntu server
body: <p>I followed the steps in <a href="https://github.com/outoftime/sunspot/wiki/Adding-Sunspot-search-to-Rails-in-5-minutes-or-less" rel="nofollow">https://github.com/outoftime/sunspot/wiki/Adding-Sunspot-search-to-Rails-in-5-minutes-or-less</a> to install &amp; set up Sunspot search in Rails in a Mac OS and it is ok.<br>
  In a Ubuntu server, there's connection refused error.<br>
  When I run</p>
  
  <pre><code>rake sunspot:solr:start
  </code></pre>
  
  <p>and the proccess starts. The file <code>sunspot-solr-development.pid</code> is created in <code>/tmp/pids</code>.
  But when I try to reindex</p>
  
  <pre><code>rake sunspot:reindex
  ...
  rake aborted!
  Connection refused - connect(2)
  </code></pre>
  
  <p>I tried to run the commands with <code>sudo</code> and gave permission <code>777</code> to the project files, but there's still error.
  Rails 3.0.8.</p>
  
  <p>Any ideas?</p>