WampServer連接埠的修改

來源:互聯網
上載者:User
連接埠被佔用了,要怎麼講80改為90?
httpd.conf檔案要改那些?
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen [::0]:80
#
# Dynamic Shared Object (DSO) Support
#
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80
HostnameLookups Off

httpd-ssl.conf檔案中
Listen 443
##
## SSL Global Context
##
## All SSL configuration in this context applies both to
## the main server and all SSL-enabled virtual hosts.
##


# General setup for the virtual host
DocumentRoot "c:/Apache24/htdocs"
ServerName www.example.com:443
ServerAdmin admin@example.com
ErrorLog "c:/Apache24/logs/error.log"
TransferLog "c:/Apache24/logs/access.log"
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on


回複討論(解決方案)

:80 --> :90

:80 --> :90


改這四次嗎?
#Listen 12.34.56.78:90
Listen 0.0.0.0:90
Listen [::0]:90
ServerName localhost:90

同名項是後面的覆蓋前面的
所以只要最後有
Listen 90
ServerName localhost
即可

同名項是後面的覆蓋前面的
所以只要最後有
Listen 90
ServerName localhost
即可


ServerName localhost:90
改完後我的WampServer還是出錯
重啟後,表徵圖一直是黃色的

這樣是不是80連接埠被佔用?

訪問localhost

求大神指教

預設是80
改了之後加連接埠號碼localhost:90 試試
另外看是哪個程式占的80可以停掉

1.在cmd 執行 netstat -o -an >c:\ip.txt
2.去c盤下找到ip.txt,找到連接埠=80的pid
3.在工作管理員查看pid的進程名稱,是否為httpd。

1.找到httpd.conf
2.然後尋找 Listen 80
3.把80改為90
4.重啟wamp

預設是80
改了之後加連接埠號碼localhost:90 試試
另外看是哪個程式占的80可以停掉



怎麼看是誰佔用了連接埠80

1.在cmd 執行 netstat -o -an >c:\ip.txt
2.去c盤下找到ip.txt,找到連接埠=80的pid
3.在工作管理員查看pid的進程名稱,是否為httpd。




這樣就說明連接埠被佔用了嗎?

1.找到httpd.conf
2.然後尋找 Listen 80
3.把80改為90
4.重啟wamp



Listen 80找不到
80的話就找到下面
#Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen [::0]:80
ServerName localhost:80

怎麼改,重啟後,表徵圖一直是黃色的

Listen 0.0.0.0:90
Listen [::0]:90
ServerName localhost:90

非常感謝大家,

以後還請大家多多指教

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.