我使用 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/