是否可以在不从shell安装的情况下运行CouchDB



我想在我的应用程序中尝试CouchDB,但如果不从linux shell安装,我找不到如何运行它。

当我使用MongoDB时,我使用以下可执行文件(例如mongod来运行服务器)来运行它

./mongo

但我只找到了使用已安装CouchDB的示例。

有没有选择如何在不安装的情况下运行CouchDB服务器?

EDIT:如果可能的话,我会寻找类似于运行上述MongoDB功能的简单解决方案。

试用CouchDB最简单的方法是使用DBaaS解决方案,如Cloudant或Iriscouch。

我认为尝试Apache CouchDB最简单的方法是将其作为Docker容器运行。

作为守护进程:

docker run -p 5984:5984 --name couchdb -d couchdb

或交互式:

docker run -it -p 5984:5984 --name couchdb couchdb
****************************************************
WARNING: CouchDB is running in Admin Party mode.
This will allow anyone with access to the
CouchDB port to access your database. In
Docker's default configuration, this is
effectively any other container on the same
system.
Use "-e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password"
to set it in "docker run".
****************************************************
Apache CouchDB 1.6.1 (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.
[info] [<0.32.0>] Apache CouchDB has started on http://0.0.0.0:5984/

参考:

https://hub.docker.com/_/couchdb/

https://github.com/apache/couchdb-docker

相关内容

最新更新