我试着按照CouchDB官方CouchDB文档上的说明安装docs.couchdb.org 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 refusedMac信息:
MacBook Pro (Retina, 13-inch, Late 2013)
OS X Yosemite
Version 10.10.3发布于 2015-05-28 01:33:53
我的猜测是,它已经安装,但没有运行。你能试着运行couchdb -d吗?
它应该在后台启动,如果您需要它在每次启动时运行,您可以继续执行“作为守护进程运行”的说明。
https://stackoverflow.com/questions/30471388
复制相似问题