์ค์นํ๊ฒฝ
CentOS 7
VERSION
Postgresql 9.6
postgis 2.3
1. Pgsql ์ค์น
OS ์ค์น ์ ์ค์ ํ ๋ํดํธ postgresql์ 9.2๋ฒ์ ์ด๋ผ์ ๋ฐ๋ก rpm ์ค์นํด์ผ ํจ
(์ฐธ๊ณ 2021.07.12 - [์น] - VM์ ๊ฐ๋ฐ ํ๊ฒฝ ๊ตฌ์ถํ๊ธฐ - OS ์ค์น)
์ํ๋ ๋ฒ์ ์ ๋ ฅํ๋ฉด ์๋์ผ๋ก ์คํฌ๋ฆฝํธ ๋ง๋ค์ด์ค
cat /etc/redhat-release
์ ๋ช ๋ น์ด๋ก ๋ฆฌ๋ ์ค ๋ ๋ํ ๋ฒ์ ํ์ธํ ์ ์์
#์๋ฌ
[Errno -1] Gpg Keys not imported, cannot verify repomd.xml for repo pgdg-common Trying other mirror.
์ค๊ฐ์ yum ๋ฆฌํฌ ์ฃผ์ ๋ฐ๊พธ๋ค๊ฐ pubKey ์๋ฌ๋์ ๋ฆฌํฌ์ง๋ ์ฐ๊ฒฐ ์ ๋จ.
์๋ ๋ช ๋ น์ด๋ก ์ ๋ฐ์ดํธํ๊ณ ์ฌ์ฐ๊ฒฐํจ
๋ฃจํธ๋ก ๋ก๊ทธ์ธ ํ ๋ค
# yum check-update
2. POSTGIS ์ค์น
epel ์ ์ฅ์ ์ค์น
# yum install epel-release
postgis 2.3 ์ค์น
# yum install postgis23_96.x86_64
postgresql ์ฌ์์
#systemctl restart postgresql-9.6.service
3. ์ ๊ทผ์ค์
postgresql.conf
ํ์ผ ์์น ๋ชป์ฐพ์ผ๋ฉด,
find / -name postgresql.conf
ํ์ผ 58ํ์ Connection Settings ์์
listen_address, port (ํฌํธ๋ ๊ธฐ๋ณธ 5432๋ผ์ ๊ตณ์ด ์ํ์ด๋ ๋จ)
pg_hba.conf
๋นจ๊ฐ ๋ถ๋ถ ์ถ๊ฐ(์๋๋ฉด ์์ ํ๊ฑฐ๋)
์ค์ ํ ์ฌ์์
systemctl restart postgresql-9.6
๋ฐฉํ๋ฒฝ ์ค์
๋ชฉ๋ก ์ถ๋ ฅ
firewall-cmd --get-zones
๋ชฉ๋ก ์์ธ ์ถ๋ ฅ
firewall-cmd --list-all-zones
ํฌํธ ์ถ๊ฐ [๋ฒ์] *****
firewall-cmd --permanent --zone=public --add-port=8080[-8090]/tcp
ํฌํธ ์ญ์
firewall-cmd --permanent --zone=public --remove-port=8080/tcp
๋ฐฉํ๋ฒฝ ์ฌ์์
firewall-cmd --reload
++ postgres ๊ณ์ ๋น๋ฐ๋ฒํธ ์ค์ ํด์ฃผ๋ฉด ๋
'๐ ํ๋ก์ ํธ > 2021-07' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
VM์ ๊ฐ๋ฐํ๊ฒฝ ๊ตฌ์ถํ๊ธฐ - ์๋ฒ (0) | 2021.07.15 |
---|---|
VM์ ๊ฐ๋ฐํ๊ฒฝ ๊ตฌ์ถํ๊ธฐ - Git (0) | 2021.07.12 |
VM์ ๊ฐ๋ฐ ํ๊ฒฝ ๊ตฌ์ถํ๊ธฐ - OS ์ค์น (0) | 2021.07.12 |