Postgresql 无法识别,即使它已安装

Postgresql 无法识别,即使它已安装

Postgresql 8.4 似乎已正确安装,如下所示:

sudo yum install postgresql 
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager 
This system is not registered to Red Hat Subscription Management. You can
use subscription-manager to register. 
This system is receiving updates from RHN Classic or RHN Satellite. 
Setting up Install Process 
Package postgresql-8.4.13-1.el6_3.x86_64 already installed and latest version
Nothing to do

但是,当我尝试运行它时,它无法识别:

$ sudo /sbin/service postgresql initdb
postgresql: unrecognized service

这是 RHEL 6.3

答案1

您需要安装 postgresql-server 以获取 System V init 脚本和服务器二进制文件。

相关内容