zoukankan      html  css  js  c++  java
  • CentOS 6.9/7通过yum安装指定版本的PostgreSQL

    PostgreSQL(10+)

    一、安装PostgreSQL

    // 安装EPEL源
    # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && rpm -ivh epel-release-6-8.noarch.rpm
    // 安装PGSQL
    # yum -y install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-6-x86_64/pgdg-centos10-10-2.noarch.rpm
    # yum -y install postgresql10
    # yum install -y postgresql10-server
    // 初始化启动服务
    # service postgresql-10 initdb
    # chkconfig postgresql-10 on
    # service postgresql-10 start

    备注:对于上面的脚本可以在官网(https://www.postgresql.org/download/linux/redhat/)找到,选择对应平台即可。

    CentOS 7:

    // 安装wget
    # yum install -y wget
    // 安装EPEL源
    # wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm && rpm -ivh epel-release-7-11.noarch.rpm
    // 安装PGSQL
    # yum install -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
    # yum -y install postgresql10
    # yum install -y postgresql10-server
    // 初始化启动服务
    # /usr/pgsql-10/bin/postgresql-10-setup initdb
    # systemctl enable postgresql-10
    # systemctl start postgresql-10

  • 相关阅读:
    yii AR 模式操作
    sql 注入命令大全
    PHP 防xss攻击
    yii rbac管理
    yii2.0 表单小部件常用的默认选中
    yii 表单小部件使用
    多个API接口
    iwebshop 增删改查
    搜索引擎接口
    2003终端服务器授权,120天试用期限制
  • 原文地址:https://www.cnblogs.com/EasonJim/p/9022969.html
Copyright © 2011-2022 走看看