如何在 Mac OS X 上安装 CouchDB? (文档没有帮助)
How to install CouchDB on Mac OS X? (Docs not helping)
我尝试按照 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
我的猜测是它已安装,但不是 运行ning。你能试试 运行ning couchdb -d
吗?
那应该在后台启动它,如果你需要它在每次启动时 运行,你可以继续按照 "Running as a Daemon"
的说明进行操作
我尝试按照 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
我的猜测是它已安装,但不是 运行ning。你能试试 运行ning couchdb -d
吗?
那应该在后台启动它,如果你需要它在每次启动时 运行,你可以继续按照 "Running as a Daemon"
的说明进行操作