[mysql@shawnyan ~]$ cat /etc/redhat-release Rocky Linux release 9.3 (Blue Onyx) [mysql@shawnyan ~]$ podman images REPOSITORY TAG IMAGE ID CREATED SIZE shawnyan.cn/rl9-builder latest 9e887e48ed6c 4 hours ago 297 MB shawnyan.cn/rl9-systemd latest be8b85ec9c17 4 hours ago 205 MB docker.io/library/rockylinux 9.3 b72d2d915008 2 months ago 181 MB [mysql@shawnyan ~]$ podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b1547a08c6a1 shawnyan.cn/rl9-builder:latest /usr/lib/systemd/... 3 hours ago Up 3 hours shawnyan [mysql@shawnyan ~]$ podman exec -it shawnyan bash [root@shawnyan /]# [root@shawnyan /]# cat /etc/redhat-release Rocky Linux release 9.3 (Blue Onyx) [root@shawnyan /]# uname -a Linux shawnyan 5.14.0-362.13.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 13 14:07:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux [root@shawnyan /]# gcc --version gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
编译步骤也很简单,下面是主要步骤:
1 2 3 4 5 6
export IVORY_VERSION=3.1 wget https://github.com/IvorySQL/IvorySQL/archive/refs/tags/IvorySQL_$IVORY_VERSION.tar.gz tar zxf IvorySQL_$IVORY_VERSION.tar.gz cd IvorySQL-IvorySQL_$IVORY_VERSION ./configure --prefix=/opt/ivorysql-$IVORY_VERSION --with-extra-version="-ShawnYan" make && make install
[root@shawnyan /]# cd /data/ivorysql-3.1/ [root@shawnyan ivorysql-3.1]# ls -al total 68 drwx------ 19 ivorysql ivorysql 4096 Feb 2 07:35 . drwxr-xr-x 4 ivorysql ivorysql 46 Feb 2 07:40 .. -rw------- 1 ivorysql ivorysql 3 Feb 2 07:17 PG_VERSION drwx------ 6 ivorysql ivorysql 46 Feb 2 07:17 base drwx------ 2 ivorysql ivorysql 4096 Feb 2 07:29 global -rw------- 1 ivorysql ivorysql 718 Feb 2 07:17 ivorysql.conf drwx------ 2 ivorysql ivorysql 6 Feb 2 07:17 pg_commit_ts drwx------ 2 ivorysql ivorysql 6 Feb 2 07:17 pg_dynshmem -rw------- 1 ivorysql ivorysql 5779 Feb 2 07:19 pg_hba.conf -rw------- 1 ivorysql ivorysql 2640 Feb 2 07:17 pg_ident.conf drwx------ 4 ivorysql ivorysql 68 Feb 2 07:35 pg_logical drwx------ 4 ivorysql ivorysql 36 Feb 2 07:17 pg_multixact drwx------ 2 ivorysql ivorysql 6 Feb 2 07:17 pg_notify drwx------ 2 ivorysql ivorysql 6 Feb 2 07:17 pg_replslot drwx------ 2 ivorysql ivorysql 6 Feb 2 07:17 pg_serial drwx------ 2 ivorysql ivorysql 6 Feb 2 07:17 pg_snapshots drwx------ 2 ivorysql ivorysql 25 Feb 2 07:35 pg_stat drwx------ 2 ivorysql ivorysql 6 Feb 2 07:17 pg_stat_tmp drwx------ 2 ivorysql ivorysql 18 Feb 2 07:17 pg_subtrans drwx------ 2 ivorysql ivorysql 6 Feb 2 07:17 pg_tblspc drwx------ 2 ivorysql ivorysql 6 Feb 2 07:17 pg_twophase drwx------ 3 ivorysql ivorysql 92 Feb 2 07:23 pg_wal drwx------ 2 ivorysql ivorysql 18 Feb 2 07:17 pg_xact -rw------- 1 ivorysql ivorysql 88 Feb 2 07:17 postgresql.auto.conf -rw------- 1 ivorysql ivorysql 29841 Feb 2 07:18 postgresql.conf -rw------- 1 ivorysql ivorysql 31 Feb 2 07:23 postmaster.opts [root@shawnyan ivorysql-3.1]#
启动数据库:
1 2 3 4 5 6 7 8 9 10 11 12
[ivorysql@shawnyan ~]$ pg_ctl start waiting for server to start....2024-02-02 07:23:37.656 UTC [11422] LOG: starting PostgreSQL 16.1-ShawnYan (IvorySQL 3.1) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2), 64-bit 2024-02-02 07:23:37.656 UTC [11422] LOG: listening on IPv4 address "0.0.0.0", port 5432 2024-02-02 07:23:37.656 UTC [11422] LOG: listening on IPv6 address "::", port 5432 2024-02-02 07:23:37.661 UTC [11422] LOG: listening on IPv6 address "::1", port 1521 2024-02-02 07:23:37.661 UTC [11422] LOG: listening on IPv4 address "127.0.0.1", port 1521 2024-02-02 07:23:37.661 UTC [11422] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432" 2024-02-02 07:23:37.665 UTC [11422] LOG: listening on Unix socket "/tmp/.s.PGSQL.1521" 2024-02-02 07:23:37.676 UTC [11425] LOG: database system was shut down at 2024-02-02 07:23:30 UTC 2024-02-02 07:23:37.681 UTC [11422] LOG: database system is ready to accept connections done server started
[ivorysql@shawnyan ivorysql-3.0]$ psql 2024-02-02 07:42:30.310 UTC [20979] FATAL: database "ivorysql" does not exist psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: FATAL: database "ivorysql" does not exist [ivorysql@shawnyan ivorysql-3.0]$ createdb ivorysql [ivorysql@shawnyan ivorysql-3.0]$ psql psql (16.0-ShawnYan) Type "help" for help.