본문 바로가기

전체 글

(26)
DB 리스트 보는 방법 DB List 보기 \l postgres=# \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+----------+----------+-------------+-------------+----------------------- postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 |..
Postgres 시작하기 [root@localhost ~]# su - postgres 마지막 로그인: 일 10월 6 23:36:35 KST 2019 일시 pts/1 -bash-4.2$ psql -U daniel -d test Password for user daniel: psql (10.10) Type "help" for help. test=# postgresql 위치 확인 which psqlDB 연결 sudo -u postgres psqlDB 연결 끊기, postgresql 쉘에서 빠져나가기 \q \? 여러가지 help를 볼수 있음 - 리눅스 postgres 계정의 패스워드 설정 [root@localhost ~]# passwd postgres 패스워드 입력 [root@localhost ~]# su - postgres 마지막 로..
쿠버네티스 기초 Pods 쿠버네티스에서는 도커처럼 container 하나만 바로 실행이 불가하다. 쿠버네티스 안에 container는 Pod 안에서 동작한다. pod은 각자의 IP를 가질수 있고 서비스에 꼭 필요 있는 container들을 하나의 pod에서 동시에 실행시킬수도 있다. pod안의 container들은 동일 네트워크, NameSpace에서 실행 되기 떄문에 호스트 이름, 네트워크 인터페이스를 공유한다. developui-MacBook-Pro:~ develop$ kubectl get service --all-namespaces NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default hello-minikube NodePort 10.96.37.58 8080:3170..