当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Metaverse "Drummer" Unity: Crazy expansion, suspense still exists
if,case,for,while
缓存穿透、缓存击穿、缓存雪崩以及解决方案
文件内容的操作
什么是数字孪生智慧城市应用场景
The Shell function
2 Gigabit Optical + 6 Gigabit Electric Rail Type Managed Industrial Ethernet Switch Supports X-Ring Redundant Ring One-key Ring Switch
JVM Notes
How to automatically export or capture abnormal login ip and logs in elastic to the database?
力扣(LeetCode)215. 数组中的第K个最大元素(2022.08.03)
Power button (LeetCode) 215. The first K largest elements in the array (2022.08.03)
How to open a CITIC Securities online account?is it safe?
嵌入式数据库开发编程MySQL(全)
new Date converts strings into date formats Compatible with IE, how ie8 converts strings into date formats through new Date, how to replace strings in js, and explain the replace() method in detail
自定义通用分页标签02
7-1 LVS+NAT 负载均衡群集,NAT模式部署
Mobile payment online and offline payment scenarios
《nlp入门+实战:第八章:使用Pytorch实现手写数字识别》
出现504怎么办?由于服务器更新导致的博客报504错误[详细记录]
7. The principle description of LVS load balancing cluster









