Sphinxsearch尚未开始

时间:2013-10-19 21:26:50

标签: sphinx

我正在尝试启动 Sphinx搜索,但它似乎没有启动。我不确定我的配置文件是否不正确,因为当我启动它时没有显示错误。这看起来不错吗?

index stories{
    type         = rt
    path         = /usr/share/sphinxsearch/data/stories
    rt_attr_uint = story_id
    rt_field     = title
    rt_field     = description
}

searchd{
    listen                  = 9312
    listen                  = 9306:mysql41
    log                     = /usr/share/sphinxsearch/log/searchd.log
    query_log               = /usr/share/sphinxsearch/log/query.log
    read_timeout            = 5
    max_children            = 30
    pid_file                = /usr/share/sphinxsearch/log/searchd.pid
    sql_sock                = /var/run/mysqld/mysqld.sock
    max_matches             = 1000
    seamless_rotate         = 1
    preopen_indexes         = 1
    unlink_old              = 1
    workers                 = threads # for RT to work
    binlog_path             = /usr/share/sphinxsearch/data
}

这是我正在运行的命令:

root@largedbapi:/usr/share/sphinxsearch# service sphinxsearch start
sphinxsearch stop/pre-start, process 29399
root@largedbapi:/usr/share/sphinxsearch# pidof sphinxsearch
root@largedbapi:/usr/share/sphinxsearch#

2 个答案:

答案 0 :(得分:1)

在Ubuntu Server上遇到同样的问题。我检查过syslog并找到它: - )

==> /var/log/syslog <==
Oct 24 14:32:27 precise64 logger: To enable sphinxsearch, edit /etc/default/sphinxsearch and set START=yes

按照上述建议后,它终于开始工作了。

答案 1 :(得分:0)

尝试

  

pidof searchd

sphinxseearch进程名称是搜索而不是sphinxsearch