我经常在我的mac上做端口转发,但是当我点击终端上的CMD +C退出端口转发时,这个过程并没有被终止。我得杀了它才能换个新的港口。你知道如何在mac上解决这个问题吗?
[2] + 43679 suspended kubectl port-forward pod/pod-0 27017:27017重试
kubectl port-forward pod/pod-2 27017:27017
Unable to listen on port 27017: Listeners failed to create with the following errors: [unable to create listener: Error listen tcp4 127.0.0.1:27017: bind: address already in use unable to create listener: Error listen tcp6 [::1]:27017: bind: address already in use]
error: unable to listen on any of the requested ports: [{27017 27017}]
➜ ~ kill -9 43679发布于 2022-10-21 20:09:52
在Mac上,您想要的命令是CTRL+C退出/终止进程。只有在kubectl进程启动时,端口转发才有效。
https://stackoverflow.com/questions/74158585
复制相似问题