Vagrant Port Forwarding not working

若如初见. 提交于 2019-11-30 22:09:55

It's quite likely that your CouchDB is listening on address 127.0.0.1 of the virtual machine (not of the physical machine). This is the default for CouchDB. Do you have the following in local.ini?

[httpd]
bind_address = 0.0.0.0

After restarting CouchDB check with netstat, on the virtual machine, if the change took effect:

sudo netstat -tlnp |grep :5984

Then check that CouchDB is running fine from the virtual machine:

curl http://127.0.0.1:5984/

If you don't see {"couchdb":"Welcome","version":"1.1.1"}, check the logs for error messages. It may be some permissions problem.

How have you installed CouchDB?

in my case, the solution to a very similar problem was much more obvious: coming from ubuntu, I didn't expect a firewall to be running on the centos box

this will disable it:

sudo service iptables stop

thanks to this blog!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!