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

前端之家收集整理的这篇文章主要介绍了linux – 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

解决方法

您需要安装postgresql-server才能获得System V init脚本和服务器二进制文件.

猜你在找的Linux相关文章