我正在使用 4.14.10-2-MANJARO。我试图安装 Postgres 数据库。我已经使用命令安装了 postgresql 10.1-1:
yaourt -S postgresql
接着:
sudo -u postgres -i
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'
createuser --interactive
然后我得到了这样的东西:
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 "/run/postgresql/.s.PGSQL.5432"?
我不知道如何解决它。我一直在使用这个网站:
https://wiki.archlinux.org/index.php/PostgreSQL#Installing_PostgreSQL
然后我想通过命令创建一个新数据库:
createdb myDatabaseName
谢谢你。