我經常在我的 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
uj5u.com熱心網友回復:
在 Mac 上,您想要的命令是CTRL C退出/終止行程。埠轉發僅在 kubectl 行程啟動時生效。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/520160.html
