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#
'pidof searchd'說什麼?實際的守護進程稱爲searchd。 sphinxsearch只是init腳本的名稱。 – barryhunter