0

我正在尝试将 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
}
4

1 回答 1

1

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

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

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

于 2013-10-10T01:22:20.910 回答