Dewey/Rocky9 postgresql-17 설치 명령어...

23 lines
638 B
Plaintext

dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf update -y
dnf -qy module disable postgresql
dnf install -y postgresql17-server
su - postgres
/usr/pgsql-17/bin/initdb -D /var/lib/pgsql/17/data/
exit
systemctl enable --now postgresql-17
cd /tmp
git clone --branch v0.8.1 https://github.com/pgvector/pgvector.git
cd pgvector
dnf config-manager --set-enabled crb
dnf install -y perl-IPC-Run
dnf install -y git gcc make postgresql17-devel redhat-rpm-config
PATH=/usr/pgsql-17/bin:$PATH make
PATH=/usr/pgsql-17/bin:$PATH make install
systemctl restart postgresql-17