How can I get Solr listening on 0.0.0.0 instead of just localhost?
Posted
by
Neil
on Server Fault
See other posts from Server Fault
or by Neil
Published on 2011-01-14T22:35:19Z
Indexed on
2011/01/14
22:55 UTC
Read the original article
Hit count: 176
solr
I'm trying to get Solr to listen on 0.0.0.0 instead of just localhost, and it doesn't seem to be picking up the configuration options.
I downloaded apache-solr-1.4.1
from the Solr website, and I'm running:
user@:apache-solr-1.4.1/example $ java -jar start.jar
With these configuration options:
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.bio.SocketConnector">
<Set name="host"><SystemProperty name="jetty.host" default="0.0.0.0" /></Set>
<Set name="port"><SystemProperty name="jetty.port" default="8983" /></Set>
<Set name="maxIdleTime">50000</Set>
<Set name="lowResourceMaxIdleTime">1500</Set>
</New>
</Arg>
</Call>
Where the only line changed from the default is this one:
<Set name="host"><SystemProperty name="jetty.host" default="0.0.0.0" /></Set>
And when I check netstat
, I see this:
$ netstat -an | egrep 'Proto|\b8983\b'
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:8983 0.0.0.0:* LISTEN
tcp6 0 0 ::1:8983 :::* LISTEN
Where Local Address
should be 0.0.0.0:8983
instead of 127.0.0.1:8983
.
Does anyone know why this might not be working?
© Server Fault or respective owner