From ba1983fd7cc6a4e7ac73d849e412bd5a3f3e9f07 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 6 Mar 2026 02:49:13 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20Database=EF=BC=9APostgreSQ?= =?UTF-8?q?L?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database%EF%BC%9APostgreSQL.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Database%EF%BC%9APostgreSQL.md diff --git a/Database%EF%BC%9APostgreSQL.md b/Database%EF%BC%9APostgreSQL.md new file mode 100644 index 0000000..80e0fb3 --- /dev/null +++ b/Database%EF%BC%9APostgreSQL.md @@ -0,0 +1,18 @@ +# 安裝 PostgreSQL + +```bash +apt update && apt install -y postgresql +``` + +# 允許外部連線 + +```bash +nano /etc/postgresql/17/main/pg_hba.conf +``` + +允許來自 `192.168.230.221` 連線的 `gitea` 使用者可以存取 + +```ini +... +host gitea gitea 192.168.230.221/24 md5 +``` \ No newline at end of file