Search code examples
macoscouchdbportosx-mavericks

Add port to 127.0.0.1


How can I add a port to 127.0.0.1? I have 127.0.0.1:5984 open but want to open another one. Any idea? As A head's up I'm new to computers. I'm on a Mac running OS X Mavericks. I'm also on Xfinity.

Edit: I am having a port conflict while attempting to use CouchDB, how can I resolve this?


Solution

  • A port is a listener for a specific protocol such as tcp or udp. In order to open a port. You need a program or service to listen on that port. For example, by default Skype will listen on port 80.

    Please read the wikipedia page for a basic overview or what a port is.

    In computer networking, a port is an application-specific or process-specific software construct serving as a communications endpoint in a computer's host operating system. A port is associated with an IP address of the host, as well as the type of protocol used for communication.

    http://en.wikipedia.org/wiki/TCP_Port

    Edit: To answer actual question:

    Unavailable Port

    Problem

    $ couchdb Apache CouchDB 0.9.0a747640 (LogLevel=info) is starting. Failure to start Mochiweb: eaddrinuse {"init terminating in do_boot",{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{erl_eval,do_apply,5},{erl_eval,exprs,5},{init,start_it,1},{init,start_em,1}]}} Solution

    Edit your /etc/couchdb/couch.ini file and change the Port setting to an available port.

    Excerpt from: http://wiki.apache.org/couchdb/Error_messages