-
<우분투> postgresql 설치 및 설정Flower in my dev/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
-
PostgreSQL 설치 -> DB 생성Flower in my dev/PostgreSQL 2015. 4. 6. 11:45
On CentOS 6.6 yum -y install postgresql-server service postgresql initdb service postgresql start cd /var/lib/pgsql/data/ vi pg_hba.conf vi postgresql.conf service postgresql restart iptables -A INPUT -p tcp --sport 5432 -j ACCEPT service iptables restart su - postgres psql postgres alter user postgres password 'qwe123' create user flower with password 'qwe123'; create database testDB with encod..