Skip to content

Commit

Permalink
2019-06-12
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang committed Jun 12, 2019
1 parent 5cb4b2a commit 5f7743f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
- [Jenkins 安装和配置](markdown-file/Jenkins-Install-And-Settings.md)
- [Maven 安装和配置](markdown-file/Maven-Install-And-Settings.md)
- [Nexus 安装和配置](markdown-file/Nexus-Install-And-Settings.md)
- [PostgreSQL 安装和配置](markdown-file/PostgreSQL-Install-And-Settings.md)
- [MySQL 安装和配置](markdown-file/Mysql-Install-And-Settings.md)
- [MySQL 优化](markdown-file/Mysql-Optimize.md)
- [MySQL 测试](markdown-file/Mysql-Test.md)
Expand Down
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
* [Jenkins 安装和配置](markdown-file/Jenkins-Install-And-Settings.md)
* [Maven 安装和配置](markdown-file/Maven-Install-And-Settings.md)
* [Nexus 安装和配置](markdown-file/Nexus-Install-And-Settings.md)
* [PostgreSQL 安装和配置](markdown-file/PostgreSQL-Install-And-Settings.md)
* [MySQL 安装和配置](markdown-file/Mysql-Install-And-Settings.md)
* [MySQL 优化](markdown-file/Mysql-Optimize.md)
* [MySQL 测试](markdown-file/Mysql-Test.md)
Expand Down
1 change: 1 addition & 0 deletions TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- [Jenkins 安装和配置](markdown-file/Jenkins-Install-And-Settings.md)
- [Maven 安装和配置](markdown-file/Maven-Install-And-Settings.md)
- [Nexus 安装和配置](markdown-file/Nexus-Install-And-Settings.md)
- [PostgreSQL 安装和配置](markdown-file/PostgreSQL-Install-And-Settings.md)
- [MySQL 安装和配置](markdown-file/Mysql-Install-And-Settings.md)
- [MySQL 优化](markdown-file/Mysql-Optimize.md)
- [MySQL 测试](markdown-file/Mysql-Test.md)
Expand Down
32 changes: 32 additions & 0 deletions markdown-file/PostgreSQL-Install-And-Settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# PostgreSQL 安装和配置


## 官网

- 官网:<https://www.postgresql.org/>
- 201906 最新版本
- 12 beat
- 11 release
- 官网 Docker hub:<https://hub.docker.com/_/postgres>


## Docker 安装 PostgreSQL(带挂载)

```
docker run \
-d \
--name pgsql \
-p 5432:5432 \
-e POSTGRES_USER=adg_user \
-e POSTGRES_PASSWORD=adg123456 \
-v ~/docker_data/pgsql/data:/var/lib/postgresql/data \
postgres:11
```

- 连上容器:`docker exec -it pgsql /bin/bash`
- 连上 PostgreSQL:`psql -h 127.0.0.1 -p 5432 -U adg_user`


## 资料

- <https://codeday.me/bug/20180726/203876.html>

0 comments on commit 5f7743f

Please sign in to comment.