在啓動Nginx的時候,一直提示端口被佔用。telnet了一下80端口,居然從Microsoft-HTTPAPI/2.0返回了信息html
HTTP/1.1 400 Bad Request Content-Type: text/html; charset=us-ascii Server: Microsoft-HTTPAPI/2.0 Date: Wed, 14 Mar 2018 11:49:26 GMT Connection: close Content-Length: 326 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>Bad Request</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Bad Request - Invalid Verb</h2> <hr><p>HTTP Error 400. The request verb is invalid.</p> </BODY></HTML>
看看哪些進程佔用了80端口,一查還真多windows
netstat -ano|findstr "80" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:7909 0.0.0.0:0 LISTENING 6580 TCP 127.0.0.1:9080 0.0.0.0:0 LISTENING 8348 TCP 127.0.0.1:36204 127.0.0.1:36205 ESTABLISHED 8084 TCP 127.0.0.1:36205 127.0.0.1:36204 ESTABLISHED 8084 TCP 172.30.6.243:1055 123.58.182.253:80 ESTABLISHED 6292 TCP 172.30.6.243:1117 163.177.48.196:80 CLOSE_WAIT 8084 TCP 172.30.6.243:36189 120.92.57.171:9002 CLOSE_WAIT 8084 TCP 172.30.6.243:36206 123.125.102.13:5222 ESTABLISHED 8084 TCP 172.30.6.243:36209 101.69.121.41:80 CLOSE_WAIT 6152 TCP 172.30.6.243:36210 101.69.121.41:80 CLOSE_WAIT 6152 TCP 172.30.6.243:36211 101.69.121.41:80 CLOSE_WAIT 6152 TCP 172.30.6.243:36234 112.80.23.59:3721 ESTABLISHED 8348 TCP 172.30.6.243:36239 221.180.253.51:10001 ESTABLISHED 8348 TCP 172.30.6.243:36268 111.202.88.154:80 CLOSE_WAIT 8084 TCP 172.30.6.243:36269 111.202.88.154:80 CLOSE_WAIT 8084 TCP 172.30.6.243:36271 111.202.88.154:80 CLOSE_WAIT 8084 TCP 172.30.6.243:44761 218.98.25.21:80 CLOSE_WAIT 8084 TCP 172.30.6.243:44889 182.118.18.123:80 CLOSE_WAIT 4120 TCP 172.30.6.243:44890 182.118.18.123:80 CLOSE_WAIT 4120 TCP 172.30.6.243:45090 121.29.18.27:80 ESTABLISHED 10396 TCP 172.30.6.243:45267 121.29.18.27:80 ESTABLISHED 10396 TCP 172.30.6.243:45280 124.160.141.84:443 ESTABLISHED 10396 TCP 172.30.6.243:45305 139.196.105.226:1093 ESTABLISHED 6580 TCP 172.30.6.243:45306 139.196.105.226:1093 ESTABLISHED 6580 TCP 172.30.6.243:45307 139.196.105.226:1093 ESTABLISHED 6580 TCP 172.30.6.243:45317 65.200.22.226:80 ESTABLISHED 8964 TCP 172.30.6.243:45328 139.196.1.6:80 TIME_WAIT 0 TCP 172.30.6.243:45330 139.196.1.6:80 TIME_WAIT 0 TCP 172.30.6.243:45335 101.251.212.236:80 TIME_WAIT 0 TCP 172.30.6.243:45339 101.251.212.236:80 TIME_WAIT 0 TCP 172.30.6.243:45341 139.196.1.6:80 TIME_WAIT 0 TCP 172.30.6.243:45343 139.196.1.6:80 TIME_WAIT 0 TCP 172.30.6.243:45344 139.196.105.226:1093 ESTABLISHED 6580 TCP 172.30.6.243:45346 139.196.105.226:1093 ESTABLISHED 6580 TCP 172.30.6.243:45351 61.135.169.125:443 FIN_WAIT_1 8084 TCP 172.30.6.243:45353 61.135.169.125:443 FIN_WAIT_1 8084 TCP [::]:80 [::]:0 LISTENING 4 UDP 0.0.0.0:9909 *:* 6580 UDP 0.0.0.0:57847 *:* 6580 UDP 0.0.0.0:63696 *:* 6580 UDP 0.0.0.0:63699 *:* 6580 UDP 127.0.0.1:48200 *:* 5880 UDP [fe80::4060:845:80a9:7bbc%14]:1900 *:* 9188 UDP [fe80::4060:845:80a9:7bbc%14]:62072 *:* 9188 UDP [fe80::5972:883b:2927:3f0e%16]:1900 *:* 9188 UDP [fe80::ac19:2510:3dbb:8843%15]:1900 *:* 9188
進入windows服務,找到SQL Server Reporting Services(MSSQLSERVER),右擊中止服務,並設置爲手動啓動spa