在远程服务器上访问CouchDB Futon [英] Accessing CouchDB Futon on a remote server
问题描述
我已经在可以通过终端telnet / ssh客户端访问的远程服务器上安装了CouchDB。
I've installed CouchDB on a remote server that I have access to through a terminal telnet/ssh client.
该服务器正在CentOS6上运行。
The server is running on CentOS6.
我真的很希望能够与Futon合作,但是由于我只能在ssh客户端中打开localhost:5984,因此我暂时无法。
I really want to be able to work with Futon, but I cannot at the moment because I can only open localhost:5984 in the ssh client.
有关如何解决此问题的任何建议?
Any suggestions on how to work around this?
推荐答案
只需创建ssh隧道到远程CouchDB实例:
Just create ssh tunnel to your remote CouchDB instance:
ssh -f -L localhost:15984:127.0.0.1:5984 user@remote_host -N
之后,仍可通过以下地址访问仍在本地主机地址上服务的远程CouchDB Futon: http:// localhost:15984 / _utils
。根据您的选择替换本地端口15984。
And after that your remote CouchDB Futon that still serve on localhost address will be available for you by address: http://localhost:15984/_utils
. Replace local port 15984 by your choice.
P.S。 Linode Wiki上还有真棒指南,其中包含示例ouchdb-tunnel脚本。希望对您有所帮助。
P.S. There is also awesome guide from Linode wiki with example couchdb-tunnel script. Hope it helps.
这篇关于在远程服务器上访问CouchDB Futon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!