3.安裝postgreSQL數據庫
yum -y groupinstall "PostgreSQL Database server"
yum -y groupinstall "PostgreSQL Database client"
chkconfig --level 2345 postgresql on
service postgresql initdb初始化數據庫
小提醒:沒有初始化,報錯:
報錯提示:/var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first
service postgresql start然後啟動postgresql服務