SC命令創建服務:
sc create Apache2.2 binPath= "D:\gzdc\apache_2_2_23\bin\httpd.exe -k runservice" displayname= "Apache2.2" start= auto depend= Tcpip
sc description Apache2.2 "Apache/2.2.23 (Win64)"sc start Apache2.2
sc delete Apache2.2
Apache自帶的httpd創建服務:
httpd -k install -n "Apache2.2" -f "D:\gzdc\apache_2_2_23\conf\httpd.conf"
[sc] openSCManager 失敗 5 拒絕 訪問拒絕