2013-10-19 52 views
0

我想啓動Sphinx搜索,但它似乎並沒有開始。我不確定我的配置文件是否不正確,因爲當我啓動它時沒有顯示錯誤。這看起來好嗎?Sphinxsearch不是開始

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 
} 

這裏是我運行以下命令:

[email protected]:/usr/share/sphinxsearch# service sphinxsearch start 
sphinxsearch stop/pre-start, process 29399 
[email protected]:/usr/share/sphinxsearch# pidof sphinxsearch 
[email protected]:/usr/share/sphinxsearch# 
+1

'pidof searchd'說什麼?實際的守護進程稱爲searchd。 sphinxsearch只是init腳本的名稱。 – barryhunter

回答

0

嘗試

的pidof的searchd

的sphinxseearch進程名的searchd不sphinxsearch

1

在Ubuntu服務器上有同樣的問題。我檢查了系統日誌並發現它:-)

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

在遵循上述建議後,終於開始工作。