我在安装postgresql-9.1的同时尝试学习Rails。我没有任何与它的麻烦的时候,但我只是打开了我的Console.app解决别的东西,我看到下面的错误每隔10秒重复:postgresql每10秒在控制台中出现错误
3/1/13 10:28:15 AM com.edb.launchd.postgresql-9.1[89003] 2013-03-01 15:28:15 GMT FATAL: data directory "/Library/PostgreSQL/9.1/data" has wrong ownership
3/1/13 10:28:15 AM com.edb.launchd.postgresql-9.1[89003] 2013-03-01 15:28:15 GMT HINT: The server must be started by the user that owns the data directory.
3/1/13 10:28:15 AM com.apple.launchd[1] (com.edb.launchd.postgresql-9.1[89003]) Exited with exit code: 1
3/1/13 10:28:15 AM com.apple.launchd[1] (com.edb.launchd.postgresql-9.1) Throttling respawn: Will start in 10 seconds
我怎么能阻止它?
看起来很明显:更改指定目录的所有权,或更改服务器运行的ID。 – 2013-03-01 21:07:43
我试过了:'sudo chown thingevery/Library/PostgreSQL/9.1/data'但是得到了:'不允许操作'我提到我对postgresql(以及一般的数据库)真的很陌生吗? – thingEvery 2013-03-01 21:35:27