twitter button

2011年3月28日 星期一

First problem I had encountered is I can't change the admin party

when I add a new admin user name: "username" with a password "password" by using curl PUT but get error as follow.
or you get no success to sign in a new user in Futon. (http://localhost:5984/_utils).

$ export HOST=http://localhost:5984

$ sudo curl -X PUT $HOST/_config/admins/username -d '"password"'


It could be the owner of /usr/local/etc/couchdb/local.ini file is not couchdb. it better be

$ sudo ls -al /usr/local/etc/couchdb/local.ini
-rw-rw-r-- 1 couchdb root 3010 2011-03-28 17:46 /usr/local/etc/couchdb/local.ini

if not

$ sudo chown couchdb /usr/local/etc/couchdb/local.ini
$ sudo chmod 664 /usr/local/etc/couchdb/local.ini

1 則留言:

  1. more information: