我使用以下命令在archlinux上安装了postgresql :
sudo pacman -S postgresql
它安装正常。但是当我想创建一个新用户时,像这样:
sudo -iu postgres
[postgres@amirashabani ~]$ createuser amirashabani
我收到此错误:
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"?
我怎样才能解决这个问题?