暂无图片
暂无图片
8
暂无图片
暂无图片
暂无图片

最新版本PostgreSQL 15一键编译安装

1、内容概述

2022 年 10 月 13 日- PostgreSQL 全球开发组宣布发布 PostgreSQL 15,这是世界上最先进的开源数据库的最新版本。 为了帮助大家快速安装部署PostgreSQL 15,体验新版本功能特性,对x_onekey工具进行更新,欢迎下载测试。
复制

2、工具说明

1. 一键编译安装 pg9/pg10/pg11/pg12/pg13/pg14/pg15、Oracle 11G/19C/21C single/standalone/rac 2. 自动识别以下`configure` 参数--prefix/--enable-debug/--enable-cassert/--enable-tap-tests/--enable-dtrace 3. 一台服务器可以安装多个PG版本 4. 自动生成参数配置文件 5. 自动设置PG监听端口
复制

3、工具下载

说明: PostgreSQL建议使用OS: rhel-server-7.5-x86_64-dvd.iso Oracle建议使用OS:Oraclelinux7.5.iso 官方pg下载路径: https://www.postgresql.org/ftp/source/
复制

4、安装步骤

[root@pgsql soft]# mkdir -p /soft [root@pgsql soft]# cd /soft ### 上传软件到/soft目录 [root@pgsql soft]# pwd /soft [root@pgsql soft]# ls -ltr total 23864248 -rw-r--r--. 1 root root 1205251894 Mar 9 2017 p13390677_112040_Linux-x86-64_3of7.zip -rw-r--r--. 1 root root 1395582860 Mar 9 2017 p13390677_112040_Linux-x86-64_1of7.zip -rw-r--r--. 1 root root 1151304589 Mar 9 2017 p13390677_112040_Linux-x86-64_2of7.zip -rw-r--r--. 1 root root 4617928704 Jan 14 2019 rhel-server-7.5-x86_64-dvd.iso -rw-r--r--. 1 root root 4440719360 Mar 12 2020 Oraclelinux7.5.iso -rw-r--r--. 1 root root 3059705302 Nov 7 2021 LINUX.X64_193000_db_home.zip -rw-r--r--. 1 root root 3109225519 Nov 7 2021 LINUX.X64_213000_db_home.zip -rw-r--r--. 1 root root 2889184573 Nov 16 2021 LINUX.X64_193000_grid_home.zip -rw-r--r--. 1 root root 2422217613 Nov 16 2021 LINUX.X64_213000_grid_home.zip -rw-r--r--. 1 root root 19409454 Jun 8 20:47 postgresql-10.21.tar.bz2 -rw-r--r--. 1 root root 22092190 Jun 8 21:32 postgresql-14.3.tar.bz2 -rw-r--r--. 1 root root 21086745 Jun 8 21:57 postgresql-12.11.tar.bz2 -rw-r--r--. 1 root root 21364433 Jun 8 21:58 postgresql-13.7.tar.bz2 -rw-r--r--. 1 root root 19047518 Jun 8 21:58 postgresql-9.6.24.tar.bz2 -rw-r--r--. 1 root root 20347100 Jun 8 22:00 postgresql-11.16.tar.bz2 -rw-r--r--. 1 root root 22403741 Oct 20 11:24 postgresql-15.0.tar.bz2 -rw-r--r--. 1 root root 89476 Oct 20 14:43 x_onekey.sh [root@pgsql soft]#
复制

5、pg 15.0 编译安装

[root@pgsql soft]# mv rhel-server-7.5-x86_64-dvd.iso yum.iso [root@pgsql soft]# chmod a+x x_onekey.sh [root@pgsql soft]# sh x_onekey.sh -dt=pg \ -op=install \ -ht=single `#type: single/rac/ha` \ -v=pg15 `# version: pg9/pg10/pg11/pg12/pg13/pg14/pg15` \ -i=192.168.1.19 `#Public ip` \ -n=pg15 `# hostname ` \ -pg_debug=yes `# Compiles all programs and libraries with debugging symbols ` \ -cassert=no `# Enables assertion checks in the server, which test for many "cannot happen" conditions. ` \ -tap_tests=no `# Enable tests using the Perl TAP tools ` \ -dtrace=no `# Compiles PostgreSQL with support for the dynamic tracing tool DTrace ` \ -yum=/soft/yum.iso `# yum location: /dev/cdrom or /soft/yum.iso`
复制

6、验证测试

[root@pgsql soft]# su - postgres Last login: Fri Oct 21 01:31:42 CST 2022 on pts/0 [postgres@pg15 ~]$ source pg15_profile [postgres@pg15 ~]$ pg_ctl start waiting for server to start....2022-10-21 01:33:39.293 CST [11976] LOG: starting PostgreSQL 15.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28), 64-bit 2022-10-21 01:33:39.296 CST [11976] LOG: listening on IPv6 address "::1", port 5432 2022-10-21 01:33:39.296 CST [11976] LOG: listening on IPv4 address "127.0.0.1", port 5432 2022-10-21 01:33:39.297 CST [11976] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432" 2022-10-21 01:33:39.299 CST [11979] LOG: database system was shut down at 2022-10-21 01:31:42 CST 2022-10-21 01:33:39.300 CST [11976] LOG: database system is ready to accept connections done server started [postgres@pg15 ~]$ pg_ctl status pg_ctl: server is running (PID: 11976) /u01/pg15/pgsql/bin/postgres [postgres@pg15 ~]$ psql psql (15.0) Type "help" for help. postgres=# \l List of databases Name | Owner | Encoding | Collate | Ctype | ICU Locale | Locale Provider | Access privileges -----------+----------+----------+---------+------------+------------+-----------------+----------------------- postgres | postgres | UTF8 | C | en_US.utf8 | | libc | template0 | postgres | UTF8 | C | en_US.utf8 | | libc | =c/postgres + | | | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | C | en_US.utf8 | | libc | =c/postgres + | | | | | | | postgres=CTc/postgres (3 rows) postgres=#
复制

7、其它版本安装说明

pg其它版本安装说明: https://www.modb.pro/db/414600 一键安装Oracle11g/19C/21C_单机/RAC集群/standalone: https://www.modb.pro/db/156560
复制
最后修改时间:2024-04-24 13:58:05
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论