Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

需要设置关闭caddy admin #240

Merged
merged 1 commit into from
Apr 13, 2023
Merged

Conversation

Timk-ztls
Copy link
Contributor

不关的话会一直弹0.0.0.0:2019已经被绑定,同时不会监听8080端口。

不关的话会一直弹0.0.0.0:2019已经被绑定,同时不会监听8080端口。
@Timk-ztls
Copy link
Contributor Author

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

@n0099 n0099 requested a review from BANKA2017 April 13, 2023 08:12
Copy link
Collaborator

@BANKA2017 BANKA2017 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

admin mode 在这里确实没啥用,关掉也好

@BANKA2017 BANKA2017 merged commit 993247e into MoeNetwork:master Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants