Postgres SQL在线安装
Posted 一沙世界
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Postgres SQL在线安装相关的知识,希望对你有一定的参考价值。
背景:CentOS 7
一、在线yum安装
1 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在线安装的主要内容,如果未能解决你的问题,请参考以下文章
全栈编程系列SpringBoot整合Shiro(含KickoutSessionControlFilter并发在线人数控制以及不生效问题配置启动异常No SecurityManager...)(代码片段