【发布时间】:2015-05-28 09:33:53
【问题描述】:
我尝试按照 docs.couchdb.org 上的官方 CouchDB 文档中的说明通过 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
【问题讨论】:
-
我的猜测是它已安装,但只是没有运行。您可以尝试运行
couchdb -d吗?这应该在后台启动它,如果您需要它在每次启动时运行,您可以继续按照“作为守护进程运行”的说明进行操作。 -
那行得通。谢谢多米尼克!我假设安装命令已经启动了服务器,因为它建议使用 curl 命令来测试它。我想确保您的回答得到认可,所以我会在您添加后立即接受。
-
已添加答案,谢谢!