Run Windows bin as a service
Tested on: Windows
- Download zss-file nssm from http://nssm.cc/download, unpack it into
C:\nssm - Run
C:\nssm\win64\nssm.exeand choose, any binary, for exampletraefik.exe - Open these ports in windows firewall
Powershell commands for widnows firewall
New-NetFirewallRule -Name 'tcp80' -DisplayName 'tcp80' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 80
New-NetFirewallRule -Name 'tcp443' -DisplayName 'tcp443' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 443
Get-NetFirewallRule -DisplayName tcp80
Get-NetFirewallRule -Name tcp80
Get-NetFirewallPortFilter | Where-Object -Property LocalPort -EQ 80
Remove-NetFirewallRule -Name tcp80