如何在Mac OS X上安装CouchDB? (文档没有帮助)

时间:2015-05-27 00:53:14

标签: macos curl couchdb

我尝试按照官方CouchDB docs docs.couchdb.org上的说明通过Homebrew安装CouchDB 1.6,但我没有成功。首先,我尝试了本机应用程序,但有效,但显然该版本不支持CORS。这是一次令人沮丧的经历,所以任何帮助都将受到高度赞赏。

以下是我在尝试ping CouchDB时遇到的错误:

curl: (7) Failed to connect to 127.0.0.1 port 5984: Connection refused

我按照安装指南进行操作:http://docs.couchdb.org/en/1.6.1/install/mac.html

这些是我使用的终端命令:

open /Applications/Installers/Xcode\ Tools/XcodeTools.mpkg
--> File not found (this step is listed as optional, so I moved on)

brew update
brew doctor

brew install autoconf
brew install autoconf-archive
brew install automake
brew install libtool
brew install erlang
brew install icu4c
brew install spidermonkey
brew install curl

brew link icu4c
--> Requires --force option which can cause installations to fail
    (I did not do the --force option)
brew link erlang
brew install couchdb
--> To test CouchDB run: curl http://127.0.0.1:5984/

curl http://127.0.0.1:5984/
--> curl: (7) Failed to connect to 127.0.0.1 port 5984: Connection refused

Mac信息:

MacBook Pro (Retina, 13-inch, Late 2013)
OS X Yosemite
Version 10.10.3

1 个答案:

答案 0 :(得分:5)

我的猜测是它已安装,但没有运行。你可以尝试运行couchdb -d吗?

应该在后台启动它,如果你需要在每次启动时运行它,你可以继续按照“作为守护进程运行”的说明进行操作