当前位置:Gxlcms > 数据库问题 > Postgres SQL在线安装

Postgres SQL在线安装

时间:2021-07-01 10:21:17 帮助过:15人阅读

yum -y install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm 2 yum -y install postgresql95-server stgresql95-odbc postgresql95-devel

二、初始化数据库

/usr/pgsql-9.5/bin/postgresql95-setup initdb

三、配置环境变量

1 export PKG_CONFIG_PATH=/usr/pgsql-9.5/lib/pkgconfig
2 export PATH=/usr/pgsql-9.5/bin:$PATH

四、添加开机启动

systemctl enable postgresql-9.5.service

五、启动服务

systemctl start postgresql-9.5.service

Postgres SQL在线安装

标签:service   conf   配置环境   sys   exp   code   yum   在线   环境   

人气教程排行