Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

解決 Gene6 FTP Server 與 IIS 端口 80 衝突問題

編輯:Linux 教學

Gene6 FTP Server 默認安裝其 Web 管理界面佔用 80 端口,導致 IIS 無法啟動。修改 Gene6 配置文件釋放 80/443 端口即可解決。

問題現象

  • IIS 服務啟動失敗,錯誤「端口 80 被佔用」
  • netstat -ano | findstr :80 顯示進程為 G6FTPServer.exe

解決步驟

  1. 定位配置文件:
    安裝目錄\Plugins\g6_webadmin.ini
  2. 編輯文件,修改端口定義:
    # 原配置
    IP0=*,80,
    IP1=*,443,SSL
    
    # 修改為非衝突端口 (如 8080, 8443)
    IP0=*,8080,
    IP1=*,8443,SSL
  3. 重啟 Gene6 FTP Server 服務
  4. 防火牆放行新端口:
    # Windows 防火牆
    控制面板 → 防火牆 → 允許應用 → 瀏覽選擇 G6FTPServer.exe 添加
    
    # 或命令行
    netsh advfirewall firewall add rule name="Gene6 FTP Web Admin" dir=in action=allow program="C:\Program Files\Gene6 FTP Server\G6FTPServer.exe" enable=yes

驗證

# 瀏覽器訪問新管理端口
https://server_ip:8080

# 確認 80 端口釋放
netstat -ano | findstr :80
# 應僅顯示 IIS 進程 (System PID 4)

最佳實踐建議

  • 安裝 Gene6 時選擇「自定義安裝」,取消勾選「Web 管理界面」或指定非 80 端口
  • 生產環境建議 Web 管理走 HTTPS (443/8443) 並配置 IP 白名單
  • 定期檢查端口佔用:netstat -tulpn (Linux) / netstat -ano (Windows)

總結

修改 g6_webadmin.ini 中 IP0/IP1 端口值、重啟服務、更新防火牆規則,三步解決 Gene6 與 IIS 端口衝突,確保 Web 服務與 FTP 管理並存。

Copyright © Windows教程網 All Rights Reserved