233boy / v2ray

最好用的 V2Ray 一键安装脚本 & 管理脚本
https://233boy.com/v2ray/v2ray-script/
GNU General Public License v3.0
24.54k stars 16.13k forks source link

trojan 类型添加无法使用其他端口 #1198

Open mengxueForgoogle opened 1 year ago

mengxueForgoogle commented 1 year ago

提示443端口被占用 (我部署了网站在443和80端口) 使用脚本中的修改配置选项将端口修改为6666 (提示80端口被占用?)

mengxueForgoogle commented 1 year ago

告! (重启) Caddy 失败

检测到运行失败, 自动执行测试运行.

V2Ray 正在运行, 跳过测试

测试运行 Caddy ..

Caddy 运行失败信息: 2023/08/16 08:09:37.193 INFO using provided configuration {"config_file": "/etc/caddy/Caddyfile", "config_adapter": ""} 2023/08/16 08:09:37.193 WARN No files matching import glob pattern {"pattern": "/etc/caddy/sites/*.conf"} 2023/08/16 08:09:37.195 WARN Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies {"adapter": "caddyfile", "file": "/etc/caddy/Caddyfile", "line": 7} 2023/08/16 08:09:37.195 WARN admin admin endpoint disabled 2023/08/16 08:09:37.195 INFO http.auto_https enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"} 2023/08/16 08:09:37.195 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc0003c5a80"} 2023/08/16 08:09:37.196 INFO tls cleaning storage unit {"description": "FileStorage:/root/.local/share/caddy"} 2023/08/16 08:09:37.196 INFO http enabling HTTP/3 listener {"addr": ":6666"} 2023/08/16 08:09:37.196 INFO http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]} 2023/08/16 08:09:37.196 INFO tls.cache.maintenance stopped background certificate maintenance {"cache": "0xc0003c5a80"} Error: loading initial config: loading new config: http app module: start: listening on :80: listen tcp :80: bind: address already in use 测试结束, 请按 Enter 退出.

233boy commented 1 year ago

@mengxueForgoogle

你有程序 占用了 80 443 不能用 CADDY 的,你可以用 no-auto-tls 参数来自己配置TLS