티스토리 뷰

# PostgreSQL repository 설치
$ rpm -Uvh https://yum.postgresql.org/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm

# PostgresQL 설치
$ yum install postgresql10-server postgresql10

# PostgreSQL DB 초기화
$ /usr/pgsql-10/bin/postgresql-10-setup initdb

#PostgreSQL 실행
$ systemctl start postgresql-10.service
$ systemctl enable postgresql-10.service

# postgre 계정 비밀번호 변경
$ su - postgres -c "psql"

psql (10.0)
Type "help" for help.
postgres=# \password postgres

댓글
댓글쓰기 폼