前言:

// 可以直接略過那一種

最近因為接了活動的 IT 關係

大概又要重拾寫網頁的日子了

心裡有點期待有點忐忑

看了學長寫的網站覺得超強

更驚人的是  搭上大學才開始學.....

我的媽啊....我該好好努力了

----------------------------------------------------------------------------

Situation:

開啟電腦眾多通訊軟體之後

Appserv 正常安裝

// 伺服器位置是 localhost Port 80

但是用在網址列打 localhost 卻連不到

一種很常見的狀況是因為 Port 已經被別的程序或連線工具佔用了

最常見出問題的軟體有兩種

1. 微軟 iis

PS:其實我不很知道 iis 是甚麼樣的工具
   大概也很少人用吧
   http://www.microsoft.com/taiwan/technet/iis/
   附上連結  有興趣的可以自己研究一下

2. Skype

----------------------------------------------------------------------------

Solution 1 :

重新安裝一次 appserv

在安裝的過程中將 Port 改成 8080

// 為何使用 Port 8080 在附錄中會有簡短介紹

安裝完成之後本來在網址列打的 localhost 要改成 localhost:8080

Solution 2 :

就直接重新開機吧......

Apache 在開機的時候是自動啟動的(除非你有修改)

而通訊軟體即使你設定自動啟動並登入

順序上也不會快過 Apache

Apache 會先佔用到 port 80

而你的通訊軟體"應該"會自動找另一個 port 來進行連線

// 這個純屬個人猜測

所以就可以正常運作了

不過這個方法是我的狀況

因為我是 Skype 和 Apache 衝突

Microsoft IIS 我就不清楚了

----------------------------------------------------------------------------

附錄:

Question: Why do we chose port 8080 as an alternative port of 80 ?

Answer:

Port 8080 is an alternative to the port 80 used by http and web services.

History:

The Internet was largely born on UNIX-based systems and servers. UNIX
enforces the notion of the first 1023 "privileged ports" which can only be
opened by services running with so-called "root", or administrative,
privileges. Historically, this meant that only authorized system
administrators were able to establish and operate a web server on port 80
since this was within the first 1023-port privileged region. Therefore, when
non-administrators wished to run their own web servers on machines which
might already have a server running on port 80, or when they were not
authorized to run services below port 1024, port 8080 was often chosen as a
convenient place to host a secondary or alternate web server.

源自: http://wiki.answers.com/Q/What_uses_port_8080

----------------------------------------------------------------------------

後記:

都是因為跟某人在 Skype 的時候研究 Appserv

不然就不會發生這種狀況了

害我差點以為一年多沒碰腦袋已經退化掉了......

天殺的嚇死我了.....

arrow
arrow
    全站熱搜

    guardian801202 發表在 痞客邦 留言(1) 人氣()