postgre๋ฅผ ์ค์นํ๊ธฐ ์ํด์ ๋จผ์ ๋งฅ์ homebrew๊ฐ์ ํ๋ก๊ทธ๋จ์ธ chocolatey๋ฅผ ์ค์นํ๋ค.
โ
chocolatey ์ค์น

Try it now ๋ฒํผ์ ํด๋ฆญํ๋ฉด installing chocolatey ํ๋ฉด์ด ๋์จ๋ค.
โ
Install Chocolatey for Individual Use

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
โ
์ค์นํ์ธ
cmd ์ด์ด์ choco --version ์
๋ ฅ
C:\Users\juyou>choco --version
2.4.3
โ Postgre ์ค์น
chocolatey๊ฐ ์ค์น๋๋ฉด powershell์์ ๊ณ์ ์ ๋ ฅํ๋ฉด ๋๋ค.
choco install postgresql
์ค์น๊ฐ 20๋ถ๋๊ฒ ๊ฝค ์ค๋๊ฑธ๋ ธ์ผ๋ ๋๋ํ ๋ง์์ ์ค๋นํ์..
โ
Window
C:\Program Files\PostgreSQL\17\data\pg_hba.conf ์ ๋ค์ด๊ฐ์
local, ipv4, ipv6 ๋ฐ๊ฟ์ค๋ค.
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all scram-sha-256
host replication all 127.0.0.1/32 scram-sha-256
host replication all ::1/128 scram-sha-256
โ
Mac
psql -U $(whoami)