2

我用的是mac操作系统。。

我试过了

ssh -fNg -L 5985:127.0.0.1:5984 wawansetiawan@192.168.1.249

但是有这样的命令:

绑定:地址已在使用
channel_setup_fwd_listener:无法监听端口:5985
无法请求本地转发。

任何人都可以帮助我??

4

2 回答 2

2

This is nothing to do with couchdb, it's an ssh question. ssh cannot open port 5985 because there's already something running on your local machine listening on that port. Use a different port or close whatever process has port 5985 open.

于 2010-11-17T14:28:28.057 回答
0

应用程序/进程已经在您的机器上运行,端口为 5985。使用不同的端口或关闭任何应用程序/进程的端口 5985 并再次启动 ssh 隧道。

尝试使用不同的端口

ssh -fNg -L 5986:127.0.0.1:5984 wawansetiawan@192.168.1.249

或者您可以终止具有端口 5985 的应用程序/进程。

netstat -nap | grep 5985
kill -9 <pid-of-5985-process>

再次启动 ssh 隧道。ssh -fNg -L 5985:127.0.0.1:5984 wawansetiawan@192.168.1.249

于 2017-04-20T09:56:22.843 回答