Vagrant Port Forwarding not working

前端 未结 2 1455
孤城傲影
孤城傲影 2021-01-05 23:40

I\'ve installed CouchDB on my vagrant 0.9.0 box that is running CentOS 6.2.

In Vagrantfile I\'ve added config.vm.forward_por

相关标签:
2条回答
  • 2021-01-06 00:17

    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?

    0 讨论(0)
  • 2021-01-06 00:17

    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!

    0 讨论(0)
提交回复
热议问题