Mysql SphinxQL连接问题(守护进程正在侦听时)

Mysql SphinxQL连接问题(守护进程正在侦听时),mysql,sphinxql,Mysql,Sphinxql,我正试图让我的SphinxQL安装在我的Ubuntu 16.04LTS环境中运行。但是,我无法连接到服务器。我使用的配置如下: searchd { listen = 9306:mysql41 log = /var/log/sphinxsearch/searchd.log query_log = /var/log/sphinxsearch/query.log read_timeout = 5 max_c

我正试图让我的SphinxQL安装在我的Ubuntu 16.04LTS环境中运行。但是,我无法连接到服务器。我使用的配置如下:

searchd
{
  listen            = 9306:mysql41
  log               = /var/log/sphinxsearch/searchd.log
  query_log         = /var/log/sphinxsearch/query.log
  read_timeout      = 5
  max_children      = 30
  pid_file          = /var/run/sphinxsearch/searchd.pid
  seamless_rotate   = 1
  preopen_indexes   = 1
  unlink_old        = 1
  binlog_path       = /var/lib/sphinxsearch/data
}
为了确认守护进程是否正在运行,我执行了:
sudo systemctl status sphinxsearch.service
,返回:

sphinxsearch.service - LSB: Fast standalone full-text SQL search engine
   Loaded: loaded (/etc/init.d/sphinxsearch; bad; vendor preset: enabled)
   Active: active (running) since Thu 2018-06-07 11:23:09 CEST; 12min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 10552 ExecStop=/etc/init.d/sphinxsearch stop (code=exited, status=0/SUCCESS)
  Process: 10614 ExecStart=/etc/init.d/sphinxsearch start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/sphinxsearch.service
           ├─10621 /usr/bin/searchd
           └─10622 /usr/bin/searchd

Jun 07 11:23:09 Serv001 sphinxsearch[10614]: listening on all interfaces, port=9306
Jun 07 11:23:09 Serv001 sphinxsearch[10614]: Sphinx 2.2.9-id64-release (rel22-r5006)
Jun 07 11:23:09 Serv001 sphinxsearch[10614]: Copyright (c) 2001-2015, Andrew Aksyonoff
Jun 07 11:23:09 Serv001 sphinxsearch[10614]: Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com)
Jun 07 11:23:09 Serv001 sphinxsearch[10614]: precaching index 'I2455'
Jun 07 11:23:09 Serv001 sphinxsearch[10614]: [1.4K blob data]
Jun 07 11:23:09 Serv001 sphinxsearch[10614]: Copyright (c) 2001-2015, Andrew Aksyonoff
Jun 07 11:23:09 Serv001 sphinxsearch[10614]: Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com)
Jun 07 11:23:09 Serv001 sphinxsearch[10614]: sphinxsearch.
Jun 07 11:23:09 Serv001 systemd[1]: Started LSB: Fast standalone full-text SQL search engine.
为了验证守护进程是否正在侦听,我执行了:
sudolsof-I-p-n | grep LISTEN
,它显示:

searchd   10622 sphinxsearch    8u  IPv4 423245474      0t0  TCP *:9306 (LISTEN)
但是,当我尝试连接:
mysql-h0-P9306
时,它返回我:
ERROR 2002(HY000):无法连接到'0'(115)
上的mysql服务器过了一会儿

注意:索引的建立没有任何问题,因此在前面已经建立了DB连接

注2:我遵循了这一点

那么,我在端口9306处无法连接到SphinxQL,这有什么不对吗?

编辑:
iptables-L的输出:

从iptables上看,您似乎将所有端口都列入黑名单(请参见输入链中的下拉列表),然后仅将选定的端口列入白名单。因此,要允许访问9306,您应该执行以下操作

iptables -A INPUT -p tcp --destination-port 9306 -j ACCEPT

“iptables-L”中有什么有趣的东西吗?我已经在问题中添加了输出,这很明显。。。谢谢你的回复!