English | 简体中文
- Executing scripts requires administrator privileges.
- nssm:https://nssm.cc/
- nginx for windows: http://nginx.org/en/download.html
- Download nssm to the current directory (filename must be nssm.exe)
- Download nginx to the current directory (folder name must be nginx-bin)
- clone or download:
git clone https://github.com/youuycom/nginx-service.git
or nginx-service.zip - install service:
install-nginx-service.bat
- uninstall service:
uninstall-nginx-service.bat
- restart service:
restart-nginx-service.bat
- stop service:
stop-nginx-service.bat
~/nginx-service
│ install-nginx-service.bat
│ nssm.exe
│ README.md
│ README_CN.md
│ restart-nginx-service.bat
│ stop-nginx-service.bat
│ uninstall-nginx-service.bat
│
└───nginx-bin
│ nginx.exe
│
├───conf
├───contrib
├───docs
├───html
├───logs
└───temp