Linux/Tools
-
[Docker] Docker 삭제 후 재 설치하기Linux/Tools 2024. 8. 9. 18:15
1. 컨테이너 삭제docker rm -f $(docker ps -qa) 2. 도커 삭제sudo apt-get purge docker-ce docker-ce-cli containerd.iosudo apt-get purge -y docker-engine docker docker.io docker-ce docker-ce-clisudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce 3. 폴더 삭제sudo rm -rf /var/lib/dockersudo rm -rf /var/run/docker.socksudo rm -rf ~/.dockersudo rm -rf /etc/dockersudo rm -rf /usr/local/bin/dock..
-
[nginx][Docker] nginx 웹서버 설치하기Linux/Tools 2024. 8. 8. 15:50
https://hub.docker.com/_/nginx/ nginx - Official Image | Docker HubQuick reference Supported tags and respective Dockerfile links 1.27.0, mainline, 1, 1.27, latest, 1.27.0-bookworm, mainline-bookworm, 1-bookworm, 1.27-bookworm, bookworm1.27.0-perl, mainline-perl, 1-perl, 1.27-perl, perl, 1.27.0-bookworm-perl, mainline-hub.docker.com 1. 이미지 가져오기docker pull nginx 2. 컨테이너 실행하기$ docker run --name ..
-
[PostgresSQL][Docker] 도커에 PostgresSQL DB 설치하기Linux/Tools 2024. 8. 8. 07:31
도커 허브 : posgresSQL postgres - Official Image | Docker HubNote: the description for this image is longer than the Hub length limit of 25000, so has been trimmed. The full description can be found at https://github.com/docker-library/docs/tree/master/postgres/README.md. See also docker/hub-feedback#238 and dhub.docker.com 1. PostgresSQL 이미지 가져오기docker pull postgres 2. 실행하기docker run --name post..
-
Ubuntu(우분투)에서 Docker(도커) 설치하기Linux/Tools 2019. 9. 24. 23:17
repository을 사용하여 설치 SET UP THE REPOSITORY 1. Update the apt package index: # Update the apt package index: $ sudo apt-get update sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" https://docs.docker.com/install/linux/docker-ce/ubuntu/
-
Mysql USER 추가Linux/Tools 2015. 11. 21. 07:53
1. user create mysql> CREATE USER 'user'@localhost IDENTIFIED BY ??????; mysql> GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost'; mysql> FLUSH PRIVILEGES; 2. DB create mysql> create database testdbname; 3. premition DB ALL PRIVILEGES - 모든데이터베이스에 대한 권한을 가지게 됨 CREATE - 새로운 테이블 또는 데이터베이스를 생성할 수 있음 DROP -테이블 또는 데이터 베이스를 삭제 DELETE - 테이블 삭제 INSERT - 테이블에 row 를 삽입가능 SELECT - 데이터베이스의 select 명령문을 사용 UPD..