Skip to content
This repository has been archived by the owner on Apr 6, 2019. It is now read-only.

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

Open
tsuibin opened this issue Dec 10, 2015 · 6 comments
Open

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

tsuibin opened this issue Dec 10, 2015 · 6 comments

Comments

@tsuibin
Copy link
Contributor

tsuibin commented Dec 10, 2015

~/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
Copy link
Contributor Author

tsuibin commented Dec 10, 2015

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

@typcn
Copy link
Owner

typcn commented Dec 10, 2015

明显是监听在 127.0.0.1 的

@tsuibin
Copy link
Contributor Author

tsuibin commented Dec 10, 2015

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

@tsuibin
Copy link
Contributor Author

tsuibin commented Dec 10, 2015

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

@typcn
Copy link
Owner

typcn commented Dec 10, 2015

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

@tsuibin
Copy link
Contributor Author

tsuibin commented Dec 10, 2015

OK 可以访问了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants