Flower in my dev/PostgreSQL
<우분투> postgresql 설치 및 설정
꽃선생
2016. 4. 5. 09:03
1. 설치
sudo apt-get install postgresql
2. 비밀번호 설정
sudo -u postgres psql
3. 설정 변경
sudo vi /etc/postgresql/9.3/main/postgresql.conf
#listen_addresses 의 주석을 풀고
localhost에서 *(all)로 변경
sudo vi /etc/postgresql/9.3/main/pg_hba.conf
localhost IP를 모든 IP로 변경
127.0.0.1 --> 0.0.0.0/0
4. 서비스 재시작
sudo service postgresql restart