我试图在F16上安装posgresql来处理我的rails安装。 使用本指南
http://wiki.postgresql.org/wiki/YUM_Installation#Initialize
但是,当我运行service postgresql initdb我得到这个错误
未知的操作initdb
Fedora 16已经从传统的init.d版本迁移到systemd ,所以你应该直接运行su - postgres -c "PGDATA=/var/lib/pgsql/data initdb" ,参见Fedora wiki
阅读你提供的链接说
For PostgreSQL version 9.0 and above, the <name> is postgresql-9.0...
后来是说
service <name> initdb
所以我猜你想要
service postgresql-9.0 initdb
你现在可以使用sudo postgresql-setup initdb 。