Closed Timk-ztls closed 1 year ago
run: loading initial config: loading new config: starting caddy administration endpoint: listen tcp 127.0.0.1:2019: bind: address already in use {"level":"info","ts":1681366612.2589755,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":""} {"level":"warn","ts":1681366612.2603042,"msg":"Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":2}
root@tieba:/var/www $ netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:9000 0.0.0.0: LISTEN
tcp 0 0 127.0.0.11:37003 0.0.0.0: LISTEN
tcp 0 0 :::http-alt ::: LISTEN
udp 0 0 127.0.0.11:59282 0.0.0.0:
不关闭的话不会开始监听http-alt
不关的话会一直弹0.0.0.0:2019已经被绑定,同时不会监听8080端口。