报错的log:
Starting PostgreSQL 9.1 database server: main
The PostgreSQL server failed to start. Please check the log output:
2013-10-05 23:58:18 CST LOG: could not create IPv6 socket: Permission denied
2013-10-05 23:58:18 CST LOG: could not create IPv4 socket: Permission denied
2013-10-05 23:58:18 CST WARNING: could not create listen socket for "localhost"
2013-10-05 23:58:18 CST LOG: could not create IPv4 socket: Permission denied
2013-10-05 23:58:18 CST WARNING: could not create listen socket for "127.0.0.1"
2013-10-05 23:58:18 CST FATAL: could not create any TCP/IP sockets ... failed!
failed!
解决方法:
usermod -a -G aid_inet postgres
-or-
(on android)usermod -a -G android_inet postgres