ubuntu - Ubuntu 14.04 中的 Couchdb 'init terminating in do_boot' 错误

标签 ubuntu couchdb ubuntu-14.04

我使用 apt-get 在 Ubuntu 14.04 中安装了 couchdb。

当我尝试运行它时,出现以下错误:

{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/etc/couchdb/default.ini","/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{error,enoent}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,56}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,269}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

我做错了什么?

我的环境是Erlang:ubuntu 14.04中的R16B03。我使用 nginx(启用了 ssl)。我应该对我的 nginx 配置文件做些什么吗?

当我执行 couchdb -b 时,我得到:

Apache CouchDB needs write permission on the PID file: /var/run/couchdb/couchdb.pid

而且,当我执行 sudo chown -R couchdb/var/run/couchdb 时,我得到以下信息:

chown: cannot access ‘/var/run/couchdb’: No such file or directory

最佳答案

您正在尝试更改/var/run 下 couchdb 目录的所有者,但它尚不存在。

创建目录:

sudo mkdir /var/run/couchdb

然后您可以运行更改所有者命令

sudo chown -R couchdb /var/run/couchdb

关于ubuntu - Ubuntu 14.04 中的 Couchdb 'init terminating in do_boot' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23619981/

相关文章:

django - 如何设置 Postman 以处理来自远程服务器的 API

couchdb - 我可以通过浏览器 UI 查看 Cloudant 本地文档吗

ubuntu - GCC对HDF5的 undefined reference

python - Python 中的 Ubuntu 系统托盘

ubuntu - Gerrit 缺少所有项目

python - 从 web2py 以类似 DAL 的方式使用 CouchDB

couchdb - 将 _find 查询与 use_index 结合使用时出现问题

Linux——另一种尾部

ubuntu - Gitlab在组的所有存储库中同步文件夹 "hooks"

python - pytesseract-没有这样的文件或目录错误