windows 安装nginx服务 出错

来源:互联网 发布:ubuntu caffe gpu 编辑:程序博客网 时间:2024/06/08 06:55
安装服务使用"Windows Service Wrapper"教程非常多,这里就不啰嗦了。

在安装过程中报错了,报错信息如下:

E:\xampp\nginx>nginx-service.exe install
WMI.WmiException: AccessDenied
   在 WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
   在 WMI.Win32ServicesProxy.Create(String , String , String , ServiceType , ErrorControl , StartMode , Boolean , String , String , String[] )
   在 winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
   在 winsw.WrapperService.Main(String[] args)


经过搜索,发现是因为没有使用管理员权限运行,

如果有相似问题的同学可以尝试