インストール手順
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
yum -y remove postgresql rm -rf /usr/pgsql* rm -rf /var/lib/pgsql* wget http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm rpm -Uvh pgdg-centos94-9.4-3.noarch.rpm sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/pgdg-94-centos.repo yum --enablerepo=pgdg94 list | grep postgresql yum --enablerepo=pgdg94 install postgresql94-server /usr/pgsql-9.4/bin/postgresql94-setup initdb systemctl start postgresql-9.4.service systemctl enable postgresql-9.4.service systemctl status postgresql-9.4.service psql --version |