我正在尝试创建Postgresql数据库并添加用户。首先,我命令:
sudo mkdir -p /usr/local/pgsql/data这应该会提示我输入密码,但它没有。
sudo chown postgres:postgres /usr/local/pgsql/data这将返回错误:
chown: postgres: illegal group name这是否意味着我还没有创建目录?为什么这个不起作用?
谢谢。
发布于 2014-05-11 12:19:05
看起来没有要分配的postgres用户或组。是你先创建的吗?
除非您熟悉linux sysadmin,否则我强烈建议您使用use existing packages for PostgreSQL。参见http://apt.postgresql.org/ (Ubuntu/Debian)和http://yum.postgresql.org (Fedora、RHEL、CentOS等)。如果你这样做了,那么所有的用户/组创建,服务注册等都会为你完成。
https://stackoverflow.com/questions/23588789
复制相似问题