Windows上的nginx停止/重新加载失败,因为Access被拒绝
发布时间:2021-03-18 02:37:47 所属栏目: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进程.祝好运. (编辑:焦作站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows-7 – 使用Powershell查询schtasks
- Windows 7所有者是否有任何开发Windows Phone 8应用程序的选
- 如何修复插入但未充电的Windows 10笔记本电脑
- 如何修复Windows 10中的错误0x80D03805
- windows – 如何定期清理IIS日志文件?
- windows-server-2008-r2 – 找出Windows远程桌面服务器(终端
- remote-desktop – 为什么不显示RemoteApp图标
- 在Linux命令行中使用ls列出文件的技巧
- windows-server-2012-r2 – Server 2012无法找到C:Boot to
- 操作系统们正在一起步入未来