Vagrant Port Forwarding not working

前端 未结 2 1457
孤城傲影
孤城傲影 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?

提交回复
热议问题