Ubuntu – Sphinx searchd connection refused by local host

sphinxsearchUbuntu

I have sphinx setup to run in config files on port 3312. I can use the indexer, and create the index. I can search.

I can't run searchd to return queries. I tried telnet 127.0.0.1 3312. My connection is refused.

Whats my next step? I am not very good with Iptables.

Best Answer

You should start searchd first, something like /usr/local/bin/searchd (you should use actual path to searchd, try locate searchd to get it)

Okay, it looks like you have two listen directives in your config:

listen = {port}
listen = {sql_host}:{sql_port}:mysql41

and the second one is obviously not right