【备忘录】由于8888端口被未知服务占用,因此我进行了调查
我正在使用8888端口作为开发服务器,但是出现了错误提示,所以我进行了调查并把结果记录了下来。
开发环境 fā
我正在使用GCE启动JupyterNote。
JupyterNote使用8888端口。
JupyterNote使用Podman容器环境。
事件
在使用Podman启动容器时,出现了以下错误。
Error: unable to start container "xxxx": rootlessport listen tcp 0.0.0.0:8888: bind: address already in use
进行调查
我使用了lsof命令来检查使用情况。
sudo lsof -i -P -n | grep 8888
otelopsco 56845 root 10u IPv6 114460 0t0 TCP *:8888 (LISTEN)
otelopsco 56845 root 13u IPv4 114677 0t0 TCP 127.0.0.1:43612->127.0.0.1:8888 (ESTABLISHED)
otelopsco 56845 root 14u IPv6 114678 0t0 TCP 127.0.0.1:8888->127.0.0.1:43612 (ESTABLISHED)
我在这里发现otelopsco正在使用,但是在Google上我找不到这个词。一开始我很着急,但是后来我尝试使用这个词来查找相关的流程。
root 56845 0.1 1.0 1322292 83232 ? Ssl 02:45 0:01 /opt/google-cloud-ops-agent/subagents/opentelemetry-collector/otelopscol --config=/run/google-cloud-ops-agent-opentelemetry-collector/otel.yaml
非常感谢您告诉我GCP代理参与其中!
结局
在使用GCP的OpenTelemetry代理程序时,我们发现使用的是Prometheus。太好了,它不是一个奇怪的程序!
您可以从以下页面查看详细信息。
The agent reports additional Prometheus style self observability metrics that can be accessed locally via the endpoint http://0.0.0.0:8888/metrics as documented here.
最后
尽管我在谷歌搜索中找不到关于”otelopsco”的信息,但好在它好像并不是有害的。希望我能对某人有所帮助!