Windows上的nginx停止/重新加载失败,因为Access被拒绝
发布时间:2021-03-18 13:37:28 所属栏目:Windows 来源:网络整理
导读:我在 Windows Server 2008 R2(x64)上运行nginx作为Windows服务.我正在使用Windows Service Wrapper. (实际上,我已经按照本教程: http://mercurial.selenic.com/wiki/HgServeNginxWindows.) 该服务运行正常.但是,服务器不处理信号(例如停止/重新加载). 这意
|
我在 Windows Server 2008 R2(x64)上运行nginx作为Windows服务.我正在使用Windows Service Wrapper. (实际上,我已经按照本教程: http://mercurial.selenic.com/wiki/HgServeNginxWindows.) 该服务运行正常.但是,服务器不处理信号(例如停止/重新加载). 这意味着如果我停止服务,nginx不会停止. (我必须杀了它.) 当我想从命令行重新加载配置时: C:UsersAdministrator>E:apathnginxnginx.exe -p E:apathnginx -c E:apathnginx.conf -s reload 它输出: nginx: [error] OpenEvent("Globalngx_reload_4268") failed (5: Access is denied)
我以管理员身份运行该命令,该服务在NETWORK SERVICE用户下运行. 任何提示或类似问题? 我在LOCAL SYSTEM下运行我的nginx-service,并使用以下xml配置:<service>
<id>nginx-service</id>
<name>nginx-service</name>
<description>nginx-service</description>
<executable>c:nginxnginx.exe</executable>
<logpath>c:nginx&;/logpath>
<logmode>roll</logmode>
<depend></depend>
<startargument>-pc:nginx</startargument>
<stopexecutable>c:nginxnginx.exe</stopexecutable>
<stopargument>-s</stopargument>
<stopargument>stop</stopargument>
</service>
我正在使用Windows Service Wrapper 1.18,这个配置对我有用.现在应该优雅地停止Nginx进程.祝好运. (编辑:呼伦贝尔站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Linux发展历史,能够与微软抗衡的操作系统
- windows-server-2008 – 是否有提供PowerShell输出的AD工具
- 格式化U盘的时候出现“Windows无法完成格式化”的处理办法
- 如何在Mac上配置Kubernetes
- 在Intel NUC上安装Linux
- 微软回应Windows 10问题多:靠AI和机器学习是必然
- HTTPie:替代Curl和Wget的现代HTTP命令行客户端
- 常用操作系统原版下载地址整理,Windows7 Windows10 Deepin
- 微软正将 Windows 11 MR 混合现实新性能推送给 Windows 10
- 微软哭了:使用Windows 7系统的公司、用户还这么多
