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 63
63
- [ Jenkins 安装和配置] ( markdown-file/Jenkins-Install-And-Settings.md )
64
64
- [ Maven 安装和配置] ( markdown-file/Maven-Install-And-Settings.md )
65
65
- [ Nexus 安装和配置] ( markdown-file/Nexus-Install-And-Settings.md )
66
+ - [ PostgreSQL 安装和配置] ( markdown-file/PostgreSQL-Install-And-Settings.md )
66
67
- [ MySQL 安装和配置] ( markdown-file/Mysql-Install-And-Settings.md )
67
68
- [ MySQL 优化] ( markdown-file/Mysql-Optimize.md )
68
69
- [ MySQL 测试] ( markdown-file/Mysql-Test.md )
Original file line number Diff line number Diff line change 42
42
* [ Jenkins 安装和配置] ( markdown-file/Jenkins-Install-And-Settings.md )
43
43
* [ Maven 安装和配置] ( markdown-file/Maven-Install-And-Settings.md )
44
44
* [ Nexus 安装和配置] ( markdown-file/Nexus-Install-And-Settings.md )
45
+ * [ PostgreSQL 安装和配置] ( markdown-file/PostgreSQL-Install-And-Settings.md )
45
46
* [ MySQL 安装和配置] ( markdown-file/Mysql-Install-And-Settings.md )
46
47
* [ MySQL 优化] ( markdown-file/Mysql-Optimize.md )
47
48
* [ MySQL 测试] ( markdown-file/Mysql-Test.md )
Original file line number Diff line number Diff line change 40
40
- [ Jenkins 安装和配置] ( markdown-file/Jenkins-Install-And-Settings.md )
41
41
- [ Maven 安装和配置] ( markdown-file/Maven-Install-And-Settings.md )
42
42
- [ Nexus 安装和配置] ( markdown-file/Nexus-Install-And-Settings.md )
43
+ - [ PostgreSQL 安装和配置] ( markdown-file/PostgreSQL-Install-And-Settings.md )
43
44
- [ MySQL 安装和配置] ( markdown-file/Mysql-Install-And-Settings.md )
44
45
- [ MySQL 优化] ( markdown-file/Mysql-Optimize.md )
45
46
- [ 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