Home  >  Article  >  Database  >  Linux环境下安装PostgreSQL

Linux环境下安装PostgreSQL

WBOY
WBOYOriginal
2016-06-07 16:52:29842browse

我是Linux的初学者,今天在安装PostgreSQL时遇到了麻烦。 我现在需要安装PostgreSQL8.2版本的,但是在控制台中输入命令:emer

   我是Linux的初学者,今天在安装PostgreSQL时遇到了麻烦。

  我现在需要安装PostgreSQL8.2版本的,但是在控制台中输入命令:emerge PostgreSQL -pv时搜索出来的信息只有PostgreSQL8.0版本的,可是,我需要安装的是8.2版本的,该怎么办呢?

  有两种解决的方法:一是直接从PostgreSQL的官网上下载8.2版本的包,然后在本机上根据安装步骤(该文件为PostgreSQL下的iinstall)进行手动安装,这样就安装成功了。

  另一种方法是仍然使用emerge命令,后面加上你需要安装的版本:ACCEPT_KEYWORDS="~x86" emerge =PostgreSQL-8.2.7,,然后,就自动安装成功了。

  之后,如果你还想将其设置为默认启动,方法为:rc-update add PostgreSQL default.

  当然,我两种方法都尝试成功了,跟大家分享分享。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn