如何以Windows服务方式运行Nginx

本文仅说明winsw中xml文件内容,其他说明请查看以下文章

winsw.xml

<configuration>
    <id>Nginx</id>
    <name>Nginx</name>
    <description>Nginx</description>
    <executable>%BASE%/Nginx.exe</executable>
    <stopexecutable>%BASE%/Nginx.exe -s stop</stopexecutable>
    <logpath>%BASE%/logs/</logpath>
    <logmode>roll</logmode>
    <depend></depend>
</configuration>

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注