学以致用

focus on Python , C++, and some interest in Go and R

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

在Win7下将Sphinx安装成windows服务时碰到如下错误:

Install the searchd system as a Windows service:

C:\Sphinx\bin> C:\Sphinx\bin\searchd --install --config C:\Sphinx\sphinx.conf.in --servicename SphinxSearch

Installing service...
FATAL: OpenSCManager() failed: code=5, error=Access is denied.
究其原因是因为Win7(也包括Vista)中将administrator权限和普通用户权限做了区分,要安装windows服务需要在administrator权限下进行。所以只需要以administrator权限运行cmd.exe就可以。
具体方法为:
选择: 所有程序---->附件--->右键单击命令提示符,选择以管理员身份运行
posted on 2011-06-17 14:08  Jerry.Kwan  阅读(2901)  评论(0编辑  收藏  举报