File tree Expand file tree Collapse file tree 4 files changed +35
-0
lines changed Expand file tree Collapse file tree 4 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 6363- [ Jenkins 安装和配置] ( markdown-file/Jenkins-Install-And-Settings.md )
6464- [ Maven 安装和配置] ( markdown-file/Maven-Install-And-Settings.md )
6565- [ Nexus 安装和配置] ( markdown-file/Nexus-Install-And-Settings.md )
66+ - [ PostgreSQL 安装和配置] ( markdown-file/PostgreSQL-Install-And-Settings.md )
6667- [ MySQL 安装和配置] ( markdown-file/Mysql-Install-And-Settings.md )
6768- [ MySQL 优化] ( markdown-file/Mysql-Optimize.md )
6869- [ MySQL 测试] ( markdown-file/Mysql-Test.md )
Original file line number Diff line number Diff line change 4242* [ Jenkins 安装和配置] ( markdown-file/Jenkins-Install-And-Settings.md )
4343* [ Maven 安装和配置] ( markdown-file/Maven-Install-And-Settings.md )
4444* [ Nexus 安装和配置] ( markdown-file/Nexus-Install-And-Settings.md )
45+ * [ PostgreSQL 安装和配置] ( markdown-file/PostgreSQL-Install-And-Settings.md )
4546* [ MySQL 安装和配置] ( markdown-file/Mysql-Install-And-Settings.md )
4647* [ MySQL 优化] ( markdown-file/Mysql-Optimize.md )
4748* [ MySQL 测试] ( markdown-file/Mysql-Test.md )
Original file line number Diff line number Diff line change 4040- [ Jenkins 安装和配置] ( markdown-file/Jenkins-Install-And-Settings.md )
4141- [ Maven 安装和配置] ( markdown-file/Maven-Install-And-Settings.md )
4242- [ Nexus 安装和配置] ( markdown-file/Nexus-Install-And-Settings.md )
43+ - [ PostgreSQL 安装和配置] ( markdown-file/PostgreSQL-Install-And-Settings.md )
4344- [ MySQL 安装和配置] ( markdown-file/Mysql-Install-And-Settings.md )
4445- [ MySQL 优化] ( markdown-file/Mysql-Optimize.md )
4546- [ MySQL 测试] ( markdown-file/Mysql-Test.md )
Original file line number Diff line number Diff line change 1+ # PostgreSQL 安装和配置
2+
3+
4+ ## 官网
5+
6+ - 官网:< https://www.postgresql.org/ >
7+ - 201906 最新版本
8+ - 12 beat
9+ - 11 release
10+ - 官网 Docker hub:< https://hub.docker.com/_/postgres >
11+
12+
13+ ## Docker 安装 PostgreSQL(带挂载)
14+
15+ ```
16+ docker run \
17+ -d \
18+ --name pgsql \
19+ -p 5432:5432 \
20+ -e POSTGRES_USER=adg_user \
21+ -e POSTGRES_PASSWORD=adg123456 \
22+ -v ~/docker_data/pgsql/data:/var/lib/postgresql/data \
23+ postgres:11
24+ ```
25+
26+ - 连上容器:` docker exec -it pgsql /bin/bash `
27+ - 连上 PostgreSQL:`psql -h 127.0.0.1 -p 5432 -U adg_user`
28+
29+
30+ ## 资料
31+
32+ - < https://codeday.me/bug/20180726/203876.html >
You can’t perform that action at this time.
0 commit comments