惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
N
Netflix TechBlog - Medium
G
Google Developers Blog
L
LangChain Blog
腾讯CDC
大猫的无限游戏
大猫的无限游戏
U
Unit 42
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
The GitHub Blog
The GitHub Blog
博客园_首页
GbyAI
GbyAI

博客园 - 余昭(Ray)

AI 编程实战营毕业总结 解决github访问速度慢的问题 使用交互界面配置centos网络(NMTUI) 银河麒麟安装达梦数据库失败Unable to load native library: libnsl.so.1: cannot open shared object file: No such file or directory Net5中使用Swagger 编译Windows 版本的Redis 6.x TypeScript入门 NetCore使用Nlog记录日志 搭建docker本地仓库 NT Kernel & System (ntoskrnl)占用80端口 简单的验证码识别 使用SSH配置git服务器免密提交 QuickStart系列:docker部署之Gitlab本地代码仓库 https环境搭建(本地搭建) docker搭建elk 使用本机IP调试web项目 本地调试微信(内网穿透) ElasticsearchCRUD翻译系列之(一): ElasticsearchCRUD 介绍 阿里云Oss对象存储 asp.netmvc部署到linux(centos)
QuickStart系列:Docker部署PostgreSQL
余昭(Ray) · 2019-12-03 · via 博客园 - 余昭(Ray)

 docker镜像地址: https://hub.docker.com/_/postgres/

https://www.widuu.com/chinese_docker/examples/postgresql_service.html

docker run --name some-postgres -e POSTGRES_PASSWORD=yz@10086 -v /opt/data/postgresql:/var/lib/postgresql/data -d postgres

其中: POSTGRES_PASSWORD是密码,默认用户名是 postgres。 /opt/data/postgresql 是持久化数据的目录。 默认端口号5432

不支持远程访问,需要另外配置 ?