Create a new Windows service on windows server2012

netsh http add iplisten ipaddress=0.0.0.0:15901

sc.exe create "FPPService" binPath= "D:appsapps_srvFPPFPPService.exe" displayname= "FPPService" depend= tcpip start= auto

原文地址:https://www.cnblogs.com/special-tao/p/4332381.html