|
15:08|loin@~>$sudo -u postgres sh
15:08|postgres@~>$createuser -ADP loin
Enter password for new role:
Enter it again:
Shall the new role be allowed to create more new roles? (y/n) y
createuser: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
──────────────────────────────
解决办法:该死,我查看了一下,没有启动服务端.............. |
|