在Windows系統(tǒng)中通過控制面板→程序→啟用或關(guān)閉Windows功能,勾選【Internet Information Services】及其子組件【W(wǎng)eb管理工具】【萬維網(wǎng)服務(wù)】【應(yīng)用程序開發(fā)功能】等核心模塊。安裝完成后,通過運(yùn)行命令inetmgr
打開IIS管理器,確認(rèn)默認(rèn)站點(diǎn)正常運(yùn)行狀態(tài)。
按以下步驟完成站點(diǎn)部署:
通過網(wǎng)站右側(cè)【綁定】功能設(shè)置訪問規(guī)則:
服務(wù)類型 | 協(xié)議 | 端口 |
---|---|---|
普通網(wǎng)站 | HTTP | 80 |
加密網(wǎng)站 | HTTPS | 443 |
FTP傳輸 | FTP | 21 |
需完成兩項(xiàng)關(guān)鍵配置:
訪問測試時(shí)若出現(xiàn)403錯誤,需檢查:
通過瀏覽器訪問http://localhost
驗(yàn)證本地部署,使用域名訪問測試公網(wǎng)連通性。若遇端口沖突,可通過命令netstat -ano
檢查端口占用情況。
2025-03-11
廣州蘇營貿(mào)易有限公司專注海外推廣十年,是谷歌推廣.Facebook廣告核心全球合作伙伴,我們精英化的技術(shù)團(tuán)隊(duì)為企業(yè)提供谷歌海外推廣+外貿(mào)網(wǎng)站建設(shè)+網(wǎng)站維護(hù)運(yùn)營+Google SEO優(yōu)化+社交營銷為您提供一站式海外營銷服務(wù)。
We and selected third parties use cookies or similar technologies for technical purposes and, with your consent, for other purposes as specified in the cookie policy.
You can consent to the use of such technologies by closing this notice, by interacting with any link or button outside of this notice or by continuing to browse otherwise.