当前位置:网站首页>centos 安装postgresql13 指定版本
centos 安装postgresql13 指定版本
2022-08-04 04:10:00 【liuyunshengsir】
yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum search postgresql13-server --showduplicates
yum search postgresql13-server --showduplicates
yum install -y postgresql13-server-13.6-1PGDG.rhel7.x86_64
配置启动
/usr/pgsql-13/bin/postgresql-13-setup initdb
systemctl enable postgresql-13
systemctl start postgresql-13
使用
切换到postgres超级管理员,创建用户
createdb db001
#创建超级用户user001
createuser -s -P user001
设置远程连接
vim /var/lib/pgsql/13/data/postgresql.conf
listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost'; use '*' for all
# (change requires restart)
psql -U user001-h localhost db001
设置白名单
host all all 10.6.8.0/24 trust
边栏推荐
- 图像处理之Bolb分析(一)
- 【MD5】采用MD5+盐的加密方式完成注册用户和登录账号
- Tensors - Application Cases
- mysql索引笔记
- Implementing a server-side message active push solution based on SSE
- Oracle与Postgresql在PLSQL内事务回滚的重大差异
- 【 observe 】 super fusion: the first mention of "calculate net nine order" evaluation model, build open prosperity of power network
- 中信证券网上开户怎么开的?安全吗?
- SQL query String field less than 10 how to check
- 7-1 LVS+NAT load balancing cluster, NAT mode deployment
猜你喜欢
随机推荐
The video of machine learning to learn [update]
Postgresql源码(66)insert on conflict语法介绍与内核执行流程解析
十一种概率分布
manipulation of file contents
数组相关 内容 解析
6-port full Gigabit Layer 2 network managed industrial Ethernet switch Gigabit 2 optical 4 electrical fiber self-healing ERPS ring network switch
2022杭电多校联赛第五场 题解
数据治理平台项目总结和分析
技术解析|如何将 Pulsar 数据快速且无缝接入 Apache Doris
Learn iframes and use them to solve cross-domain problems
Metaverse "Drummer" Unity: Crazy expansion, suspense still exists
Functions, recursion and simple dom operations
MRS: Alluxio的使用介绍
JVM的内存模型简介
Eight guiding principles to help businesses achieve digital transformation success
10 Convolutional Neural Networks for Deep Learning 3
【MD5】采用MD5+盐的加密方式完成注册用户和登录账号
SQL query String field less than 10 how to check
Polygon zkEVM网络节点
Polygon zkEVM network node