내용으로 건너뛰기
adminschool.net wiki
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
•
04
•
mssql
•
node
•
procedure
dbms:pgsql:install
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
===== PostgreSQL Installation ===== ==== Install on Debian Linux ==== - 데뱐리눅스에 패키지를 설치해 보자. <code> # apt-get install postgresql postgresql-client postgresql-dev libpg-perl libdbd-pg-perl </code> ==== Install on Ubuntu Linux ==== - 우분투 리눅스에 패키지로 설치해 보자. <code> # apt-get install postgresql-8.1 postgresql-client-8.1 postgresql-client-common postgresql-common \ postgresql-server-dev-8.1 postgresql-contrib-8.1 postgresql-plperl-8.1 postgresql-plpython-8.1 </code> ===== Create User, Database ===== - 계정과 데이타베이스를 생성한다. <code> # su - postgres # psql -d template1 template1=# CREATE USER 아이디 WITH PASSWORD '비밀번호'; template1=# CREATE DATABASE 디비이름 WITH ENCODING='utf-8' OWNER 아이디; </code> - 예를 들어보자 <code> template1=# create user eecit with password 'userpassword'; CREATE USER template1=# create database eecitdb with encoding='utf-8' owner eecit; CREATE DATABASE </code> ===== 권한설정 ===== - 계정으로 로그인할 수 있도록 연결설정 <code> # su - # cd /etc/postgresql/8.1/main # vi pg_hba.conf 모두 주석으로 막고 아래만 남김 host all all 0.0.0.0 0.0.0.0 password local all postgres trust local all all password # /etc/init.d/postgresql-8.1 restart # psql -d 디비이름 -U 아이디 -W </code> ===== DB List 보기 ===== - 데이타베이스 리스트를 확인한다. <code> # psql -U postgres -l List of databases Name | Owner | Encoding -------------+-------------+---------- eecit | eecit | UNICODE openwatcher | openwatcher | UNICODE template0 | postgres | UNICODE template1 | postgres | UNICODE (4 rows) </code>
dbms/pgsql/install.txt
· 마지막으로 수정됨: 2010/01/05 05:37 저자
starlits
문서 도구
문서 보기
이전 판
역링크
맨 위로