无法启动CouchDB [英] Unable to start CouchDB
问题描述
只需在Mac Mountain Lion上使用brew安装CouchDb。一切顺利,直到我遇到以下问题来启动服务器,我不知道erlnag并且无法分析转储文件
Just installed CouchDb using brew on mac mountain lion. Everything went well till I hit the following issue to start the server I do not know erlnag and could not analyze the dump file
`couchdb
Apache CouchDB 1.2.1 (LogLevel=info) is starting.
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()`
Any帮助非常感谢。
我已经离开了配置文件
Any help much appreciated. I have left the configurations files as it is
推荐答案
通常这是由于对各种配置文件的权限不正确& ;目录。可能是由于以sudo / root用户身份运行引起的。
Often this is due to incorrect permissions on various configuration files & directories. It can be caused by running as a sudo / root user for example.
您可以尝试使用以下方法修复此问题,但您可能需要自己创建/添加到
You can try fixing this using the following, but you may need to either create/add yourself to a couchdb group, or use a different user:group combination.
sudo chown -R couchdb:couchdb /etc/couchdb /var/lib/couchdb /var/run/couchdb /var/log/couchdb
sudo chmod -R 770 /etc/couchdb /var/lib/couchdb /var/run/couchdb /var/log/couchdb
sudo find /etc/couchdb /var/lib/couchdb /var/run/couchdb /var/log/couchdb -type f | sudo xargs chmod 660
```
请参见 http:// wiki中的 chmod
部分。 apache.org/couchdb/Installing_on_OSX 了解更多信息。
See the chmod
section in http://wiki.apache.org/couchdb/Installing_on_OSX for more detail.
这篇关于无法启动CouchDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!