CentOS7にpostgreSQL9.4をインストール

(1)postgreSQLのダウンロード
wget http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-1.noarch.rpm
(2)PostgreSQLをインストール
rpm -ivh pgdg-centos94-9.4-1.noarch.rpm
yum -y install postgresql94-server postgresql94-devel postgresql94-contrib
(3)データベースを初期化
# /usr/pgsql-9.4/bin/postgresql94-setup initdb
Initializing database ... OK

(4)postgreSQLの起動
systemctl start postgresql-9.4

(5)postgreSQLの自動起動

systemctl enable postgresql-9.4

コメント

人気の投稿