0

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

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#
4

2 回答 2

1

在 Ubuntu 服务器上遇到了同样的问题。我检查了系统日志并找到了它:-)

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

遵循上述建议后,它终于开始工作了。

于 2014-10-24T12:36:06.117 回答
0

尝试

pidof 搜索

sphinxsearch 进程名称是 searchd 不是 sphinxsearch

于 2014-09-24T08:03:29.267 回答