Linux下PostgreSQL安装部署

Linux下PostgreSQL安装部署

目录

1、安装环境
2、pg数据库安装包下载
3、安装依赖包
4、安装
5、测试

一、安装环境

  • postgresql-16.0
  • CentOS-7

二、pg数据库安装包下载

  • 下载地址:下载链接 http://www.postgresql.org/ftp/source/
    选择自己要安装的版本在这里插入图片描述

三、安装需要的依赖包

  • 在安装数据库的Linux上安装以下依赖包:
    yum install -y perl-ExtUtils-Embed readline-devel zlib-devel pam-devel libxml2-devel libxslt-devel openldap-devel python-devel gcc-c++ openssl-devel cmake

四、安装

  • 创建pgsql文件夹,将安装包放到该目录下
[root@localhost opt]# mkdir pgsql
  • 解压压缩包
[root@localhost pgsql]# tar -zxvf postgresql-11.1.tar.gz 
  • 进入解压后的文件夹
[root@localhost postgresql-16.0]# ls
aclocal.m4  config.log     configure     contrib    doc          GNUmakefile.in  INSTALL   meson.build        README
config      config.status  configure.ac  COPYRIGHT  GNUmakefile  HISTORY         Makefile  meson_options.txt  src
  • 编译postgresql源码
--prefix 指定pg安装路径
[root@localhost postgresql-1
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值