Sphinx致命错误:无法解析配置文件

时间:2013-10-09 09:43:33

标签: windows-services sphinx

我正在尝试将Sphinx作为Windows启动:

searchd.exe --install --config c:\develop\sphinx\cs.config --servicename CSSearch

已正确安装。

但是,当我尝试开始服务时。我收到错误1067.在系统日志中:

FATAL: failed to parse config file 'c:\develop\sphinx\cs.config';

当我尝试执行searchd.exe时:

searchd.exe --config c:\develop\sphinx\cs.conf

没关系。

如何正确启动searchd作为Win服务?

我的cs.conf:

searchd
{
    listen      = 127.0.0.1:9306:mysql41
    pid_file    = c:\Develop\sphinx\data\searchd.pid
    log     = c:\Develop\sphinx\log\sphinx.log
    #query_log  = c:\Develop\sphinx\log\query.log
    binlog_path = c:\Develop\sphinx\data\binlog\
    workers     = threads
    compat_sphinxql_magics = 0
    mysql_version_string = 5.5.21
    seamless_rotate = 0
}

index address
{
        type = rt
        dict = keywords
        path = c:\Develop\sphinx\data\index\address_index
        min_infix_len = 1
        enable_star = 1
        rt_field = country
        rt_field = region
        rt_field = city
        rt_field = street
}

index bank_detail
{
        type = rt
        dict = keywords
        path = c:\Develop\sphinx\data\index\bank_detail_index
        min_infix_len = 1
        enable_star = 1
        rt_field = bank_name
        rt_field = customer_name
        rt_field = settlement_account
}

1 个答案:

答案 0 :(得分:1)

  

- config c:\ develop \ sphinx \ cs.config

  

- config c:\ develop \ sphinx \ cs.conf

它们似乎是不同的文件名!