LeanClub icon indicating copy to clipboard operation
LeanClub copied to clipboard

debian 安装 couchdb 然后访问/_utils/index.html页面报错

Open tsuibin opened this issue 10 years ago • 6 comments

~/src/LeanClub/databases$ sudo -i -u couchdb couchdb Apache CouchDB is running as process 10837, time to relax. 显示已经运行

netstat -tnal也可以看到 tcp 0 0 127.0.0.1:5984 0.0.0.0:* LISTEN 端口5984已经监听

但是用浏览器打开 http://10.0.0.49:5984/_utils/index.html 显示 无法显示此网页

ERR_CONNECTION_REFUSED

,请问如何解决

tsuibin avatar Dec 10 '15 11:12 tsuibin

我是参照这里安装的 http://docs.couchdb.org/en/1.6.1/install/unix.html#first-run

tsuibin avatar Dec 10 '15 11:12 tsuibin

明显是监听在 127.0.0.1 的

typcn avatar Dec 10 '15 11:12 typcn

远程主机,无法从127.0.0.1访问 Foreign Address 0.0.0.0:* 应该可以从任意地址访问阿

tsuibin avatar Dec 10 '15 11:12 tsuibin

修改 /etc/couchdb/default.ini ;bind_address = 127.0.0.1 bind_address = 0.0.0.0

tsuibin avatar Dec 10 '15 11:12 tsuibin

改配置之后重新打开,然后netstat试试

typcn avatar Dec 10 '15 11:12 typcn

OK 可以访问了

tsuibin avatar Dec 10 '15 11:12 tsuibin