使用Sphinx的searchd命令创建服务

使用Sphinx的searchd命令创建服务,sphinx,Sphinx,searchd--install--config“配置文件的路径”--servicename“servicename”--port“portnumber” 根据文件(http://sphinxsearch.com/docs/current.html#ref-searchd)启动服务时调用创建服务时指定的所有参数 --将searchd作为服务安装到Microsoft管理控制台(控制面板/管理工具/服务)中。在命令行上指定的任何其他参数(其中指定了--install)也将在以后启动服务时成为命令行的

searchd--install--config“配置文件的路径”--servicename“servicename”--port“portnumber”


根据文件(http://sphinxsearch.com/docs/current.html#ref-searchd)启动服务时调用创建服务时指定的所有参数

--将searchd作为服务安装到Microsoft管理控制台(控制面板/管理工具/服务)中。在命令行上指定的任何其他参数(其中指定了--install)也将在以后启动服务时成为命令行的一部分。例如,作为调用searchd的一部分,您可能还需要使用--config指定配置文件,您可以这样做,还可以指定--install。一旦调用,通常的启动/停止功能将通过管理控制台可用,因此您可以用于启动、停止和重新启动服务的任何方法也将应用于searchd。例如:

C:\WINDOWS\system32>C:\Sphinx\bin\searchd.exe--安装--配置C:\Sphinx\Sphinx.conf

上面的命令意味着配置文件必须始终存在于C:\Sphinx\Sphinx.conf

如果您的“配置文件路径”存在,并且服务仍然没有启动,那么我建议您创建一个bug,以便解决它


同时,将配置文件放在Sphinx目录中它的工作位置。

确保Sphinx文件夹中有一个日志文件夹。如果您检查配置文件的searchd部分,它将有一个选项来选择日志文件和pid的放置位置。如果目录不存在,则服务将不会启动。

请不要在帖子中使用签名/标语。您的用户框算作您的签名,您可以使用您的个人资料发布您喜欢的任何关于您自己的信息。
    I make index on one Sphinx compatible xml document.It runs success fully.
Then i make service using searchd command.Following is command to make service 
If Sphinx config file is put inside Sphinx directory then service create and start successfully.

But if config file is not inside Sphinx directory then service created successfully but it can not start successfully.

Should i change something inside searchd block in config file?