1. 程式人生 > >安裝xampp 時 port 80被佔用 解決

安裝xampp 時 port 80被佔用 解決

xampp 把apache mysql, php, phpmyadmin都integrate在一起, 很好安裝,操作簡單,但是也有弊端。 使用者沒有選項改port 當 知曉80被佔用。

當80 port被佔用,apache是安裝不上的,其實它所有的安裝檔案都放過去了。 本想只想httpd.conf的port配置的。

發現居然這樣做不行。

okay, 沒問題,找其他的方法。

用cmd > netstat -aon | findstr 0.0.:80 enter

發現 PID 4 佔用了80, 這是個system 程序, NT Kernal & System, 不能kill掉它,不然必將藍屏。

查詢 哪些application 會呼叫NT Kernal & system 

  1. IIS is still running.
  2. SQL Server Reporting Services is running(this was my problem).
  3. Web Deployment Agent Service is running.
services.msc enter,果真 SQL Server Reporting Services 是active的,stop it.

re-install xampp, okay now.

當然除了 以上說的 NT Kernal 會佔用埠,還有skype也會佔用。

done