安装Nginx作为Windows服务自启动运行
程序员文章站
2022-05-26 12:02:37
...
- service>
- id>nginxid>
- name>nginxname>
- description>nginxdescription>
- executable>d:\www\nginx\nginx.exeexecutable>
- logpath>d:\www\logs\logpath>
- logmode>rolllogmode>
- depend>depend>
- startargument>-p d:\www\nginxstartargument>
- stopargument>-p d:\www\nginx -s stopstopargument>
- service>
- service>
- id>nginxid>
- name>nginxname>
- description>nginxdescription>
- executable>D:\BALANCE_TOMCAT__NGINX\nginx-1.6.0\nginx.exeexecutable>
- logpath>D:\BALANCE_TOMCAT__NGINX\nginx-1.6.0\logs\logpath>
- logmode>rolllogmode>
- depend>depend>
- startargument>-p D:\BALANCE_TOMCAT__NGINX\nginx-1.6.0startargument>
- stopargument>-p D:\BALANCE_TOMCAT__NGINX\nginx-1.6.0 -s stopstopargument>
- service>
注:如果未修改此文件就安装服务,服务无法启动。会出现如下错误:
上一篇: 随便mark
下一篇: 用ps滤镜制作炫酷动感的彩色光束效果图
推荐阅读