利用winsw让nginx自启动

作者: bugWriter_y | 来源:发表于2019-06-13 09:42 被阅读7次

参考winsw:“let everything to be a service”

winsw.xml

<service>
  <id>nginx</id>
  <name>nginx</name>
  <description>nginx</description>
  <executable>D:\dev\nginx-1.16.0\nginx.exe</executable>
  <arguments>-c D:\dev\nginx-1.16.0\conf\nginx.conf</arguments>
  <logmode>rotate</logmode>
</service>

以管理员身份运行cmd

winsw.exe install
winsw.exe start

相关文章

网友评论

    本文标题:利用winsw让nginx自启动

    本文链接:https://www.haomeiwen.com/subject/idqjfctx.html