CentOS 7 PostgreSQL ¼³Ä¡ ¹× »ç¿ë¹ý

   Á¶È¸ 15527   Ãßõ 0    

https://www.ehostidc.co.kr/hosting/domestic.php (597)
https://www.ehostidc.co.kr/colocation/colocation.php (686)



 

1) PostgreSQL 설치

[root@master ~]# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat- 

[root@master ~]# yum install postgresql11-server postgresql11-contrib


2) postsql 실행

[root@master ~]# /usr/pgsql-11/bin/postgresql-11-setup initdb

[root@master ~]# systemctl start postgresql-11

[root@master ~]# systemctl enable postgresql-11


3) postgresql /196;컬 1217;속

[root@master ~]# su R11; postgres  *PostgreSql 설치시 1088;ᇼ1; 생성.104;lj16; 계1221;

-bash-4.2$ psql

postgres=# \q  *PostgreSql 1217;속 1333;료


4) databases 확1064; 0143; 신규 데1060;터베1060;스 생성

postgres=# \l

postgres=# create database [DB Name];


5) table  생성

postgres=# CREATE TABLE [데1060;터베1060;스명]( title varchar(256) NOT NULL, contents varchar NOT NULL, date date NOT NULL, name varchar(20) NOT NULL );

postgres=# \dt


6) 사용1088; 계1221; 생성

postgres=# select * from pg_user; 

postgres=# CREATE USER [사용1088;명] PASSWORD '[비0128;번호]';

postgres=# select * from pg_user; 


7) 사용1088; 계1221; 권한 추가

postgres=# alter role [사용1088;명] [추가 권한];

postgres=# \du  *사용1088;명 0143; 권한 확1064;



 

https://www.aiocp.co.kr/ ( 딥러닝,머신러닝 서버 판매 ,컨설팅) https://bigbangcloud.co.kr/ ( GPU 클라우드 서비스) ::: AI 서버의 모든것 ::: 인공지능의 시작~ (주)이호스트ICT


Á¦¸ñPage 8/26
2021-06   8210   Sikieiki
2021-06   9048   È­Á¤Å¥»ï
2021-06   8864   È­Á¤Å¥»ï
2021-06   216   dadad
2021-06   7556   ¿¬À̶ûÁø
2021-05   8457   µö·¯´×¼­¹ö
2021-05   9121   shipse
2021-05   12152   µö·¯´×¼­¹ö
2021-04   14357   È­Á¤Å¥»ï
2021-04   15528   µö·¯´×¼­¹ö
2021-04   12604   µö·¯´×¼­¹ö
2021-03   14971   µö·¯´×¼­¹ö
2021-03   14481   ¹Ú¹®Çü
2021-03   13691   ³ª¿ì¼Ò·¡
2021-03   11175   ¼úÀÌ
2021-03   15456   µö·¯´×¼­¹ö
2021-03   11242   ±¸Çü
2021-02   7228   ¼ÛÁÖȯ
2021-02   12475   µö·¯´×¼­¹ö
2021-02   10152   µö·¯´×¼­¹ö