"우분투 PostgreSQL 설치"의 두 판 사이의 차이

15번째 줄: 15번째 줄:
Reading state information... Done
Reading state information... Done
The following extra packages will be installed:
The following extra packages will be installed:
   postgresql-9.3 postgresql-common
   libpq5 postgresql-9.3 postgresql-client-9.3 postgresql-client-common
  postgresql-common
Suggested packages:
Suggested packages:
   oidentd ident-server locales-all
   oidentd ident-server locales-all postgresql-doc-9.3
The following NEW packages will be installed:
The following NEW packages will be installed:
   postgresql postgresql-9.3 postgresql-common
   libpq5 postgresql postgresql-9.3 postgresql-client-9.3
0 upgraded, 3 newly installed, 0 to remove and 147 not upgraded.
  postgresql-client-common postgresql-common
Need to get 2,796 kB of archives.
0 upgraded, 6 newly installed, 0 to remove and 145 not upgraded.
After this operation, 12.2 MB of additional disk space will be used.
Need to get 889 kB/3,685 kB of archives.
After this operation, 15.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]  
Do you want to continue? [Y/n]  
</source>
</source>
<source lang='cli'>
<source lang='cli'>
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main postgresql-common all 154ubuntu1 [103 kB]
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libpq5 amd64 9.3.11-0ubuntu0.14.04 [80.6 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main postgresql-9.3 amd64 9.3.11-0ubuntu0.14.04 [2,688 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main postgresql-client-common all 154ubuntu1 [25.4 kB]
... (생략)
... (생략)
Creating new cluster 9.3/main ...
Creating new cluster 9.3/main ...
37번째 줄: 39번째 줄:
  * Starting PostgreSQL 9.3 database server                                                    [ OK ]  
  * Starting PostgreSQL 9.3 database server                                                    [ OK ]  
Setting up postgresql (9.3+154ubuntu1) ...
Setting up postgresql (9.3+154ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
</source>
</source>



2016년 3월 23일 (수) 12:47 판

우분투 PostgreSQL 서버 설치
우분투 postgres 설치

1 확인

root@zetawiki:~# aptitude show postgresql | grep State
State: not installed

2 설치

root@zetawiki:~# apt-get install postgresql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libpq5 postgresql-9.3 postgresql-client-9.3 postgresql-client-common
  postgresql-common
Suggested packages:
  oidentd ident-server locales-all postgresql-doc-9.3
The following NEW packages will be installed:
  libpq5 postgresql postgresql-9.3 postgresql-client-9.3
  postgresql-client-common postgresql-common
0 upgraded, 6 newly installed, 0 to remove and 145 not upgraded.
Need to get 889 kB/3,685 kB of archives.
After this operation, 15.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libpq5 amd64 9.3.11-0ubuntu0.14.04 [80.6 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main postgresql-client-common all 154ubuntu1 [25.4 kB]
... (생략)
Creating new cluster 9.3/main ...
  config /etc/postgresql/9.3/main
  data   /var/lib/postgresql/9.3/main
  locale en_US.UTF-8
  port   5432
update-alternatives: using /usr/share/postgresql/9.3/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
 * Starting PostgreSQL 9.3 database server                                                    [ OK ] 
Setting up postgresql (9.3+154ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

3 확인 2

root@zetawiki:~# aptitude show postgresql | grep State
State: installed
root@zetawiki:~# /etc/init.d/postgresql status
9.3/main (port 5432): online
root@zetawiki:~# netstat -tnlp | grep postgres
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      23680/postgres

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}