use*_*669 8 linux port networking lsof alpine-linux
我有一个在 alpine linux 中运行的 Spring Boot 应用程序,监听端口 8080。但是,当我这样做时:
$ lsof
$ lsof -i 8080
Run Code Online (Sandbox Code Playgroud)
它不显示打开的端口。你知道我做错了什么吗?
似乎 lsof 在 alpine linux 上不尊重任何论点。它总是显示相同的输出 - 似乎忽略了 -i。
谢谢你。
Kam*_*Cuk 11
lsof从lsof安装,而不是从 busybox安装。Busyboxs lsof 只是简单的。
apk add lsof
Run Code Online (Sandbox Code Playgroud)
应该修复它。