centos 7安装postgreSQL 10.1

检查是否安装postgresql
[root@localhost ~]# rpm -qa | grep postgres 

Note:如果已经安装,请先卸载,命令如下
             rpm -e 已安装的文件

创建用户和组
[root@localhost ~]# groupadd postgres
[root@localhost ~]# useradd -g postgres postgres
[root@localhost ~]# passwd postgres

安装10的仓库
yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm

安装客户端
yum install postgresql10

安装可选安装选项
yum install postgresql10-server
yum install postgresql10-contrib
yum install postgresql10-devel

对应的package说明
postgresql-client                    libraries and client binaries
postgresql-server                  core database server
postgresql-contrib                  additional supplied modules
postgresql-devel                    libraries and headers for C language development
pgadmin3 - pgAdmin III         graphical administration utility


检查安装位置
[root@localhost ~]# rpm -qal|grep postgres
/usr/share/doc/postgresql10-10.1
/usr/share/doc/postgresql10-10.1/COPYRIGHT
/usr/share/doc/postgresql10-10.1/KNOWN_BUGS
/usr/share/doc/postgresql10-10.1/MISSING_FEATURES
/usr/share/doc/postgresql10-10.1/README.rpm-dist
/usr/share/doc/postgresql10-10.1/bug.template
/usr/pgsql-10/include/internal/postgres_fe.h
/usr/pgsql-10/include/postgres_ext.h
/usr/pgsql-10/include/server/postgres.h
/usr/pgsql-10/include/server/postgres_ext.h
/usr/pgsql-10/include/server/postgres_fe.h
/usr/lib/firewalld/services/postgresql.xml
/usr/lib64/security/pam_postgresok.so
/usr/share/doc/pam-1.1.8/txts/README.pam_postgresok
/usr/share/man/man8/pam_postgresok.8.gz
/usr/share/augeas/lenses/dist/postgresql.aug
/usr/pgsql-10/lib/postgres_fdw.so
/usr/pgsql-10/share/extensio
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值