如何像couchperuser一样安装CouchDB插件/守护进程

时间:2014-10-10 03:41:37

标签: plugins couchdb daemon

如何安装CouchDB插件/守护进程,如couchperuser

1 个答案:

答案 0 :(得分:1)

安装任何依赖项。 couchperuser 需要 rebar ,例如

$ brew install rebar

确保插件目录存在,例如

$ mkdir /usr/local/Cellar/couchdb/1.6.0_1/lib/couchdb/plugins

克隆(下载)回购:

$ git clone https://github.com/etrepum/couchperuser.git

移动插件文件:

$ mv couchperuser /usr/local/Cellar/couchdb/1.6.0_1/lib/couchdb/plugins

构建插件文件:

$ cd /usr/local/Cellar/couchdb/1.6.0_1/lib/couchdb/plugins/couchperuser
$ make

重新启动couchdb