본문 바로가기

728x90

리눅스

docker rmi 명령어 docker rmi 명령어 모든 이미지 삭제 docker rmi -f $(docker images -q) untagged 이미지만 조회 docker images -f "dangling=true" -q docker image untagged(none) 삭제 docker rmi $(docker images -f "dangling=true" -q) docker image 필터 적용 reference="registry.binddns.com/playground/elasticsearch:*" docker images -q --filter=reference="registry.binddns.com/playground/elasticsearch:*" $ docker images -q --filter=reference="r.. 더보기
CentOS 7에서 HAProxy를 설치하고 구성하는 방법 CentOS 7에서 HAProxy를 설치하고 구성하는 방법 다이어그램(diagram) 1. HAProxy 설치 HAProxy를 설치합니다. sudo yum install -y haproxy $ haproxy -v HA-Proxy version 1.5.18 2016/05/10 Copyright 2000-2016 Willy Tarreau 2. HAProxy 구성 파일 편집 /etc/haproxy/haproxy.cfg 파일을 편집하여 로드 밸런서를 구성합니다. haproxy.cfg 편집(default) $ cat /etc/haproxy/haproxy.cfg #--------------------------------------------------------------------- # Example confi.. 더보기
우분투(Ubuntu)에서 도커(Docker) 데몬의 로그를 관리하는 방법 우분투(Ubuntu)에서 도커(Docker) 데몬의 로그를 관리하는 방법 도커(Docker) 데몬의 로그를 관리하는 방법은 다양한 로그 관리 도구를 사용하여 가능합니다. 주로는 도커의 로깅 드라이버 설정 및 로그 파일 관리를 통해 로그를 관리합니다. 1. 로그 드라이버 설정(daemon.json 파일 생성) 도커 데몬은 다양한 로그 드라이버를 지원하며, 이를 사용하여 로그를 관리합니다. 기본 로그 드라이버는 json-file 이며, 다른 로그 드라이버로 변경하려면 /etc/docker/daemon.json 파일을 편집합니다. sudo vim /etc/docker/daemon.json daemon.json 파일이 없는 경우 새로 만들 수 있습니다. 다음은 daemon.json 파일에 json-file 로그.. 더보기
[기타] 프로세스 스케줄링 기법 프로세스 스케줄링 기법 프로세스(process)란? 프로세스(process)는 컴퓨터에서 연속적으로 실행되고 있는 컴퓨터 프로그램을 의미하며 종종 스케줄링의 대상이 되는 작업(task)이라는 용어와 거의 같은 의미로 쓰인다. 여러 개의 프로세서를 사용하는 것을 멀티프로세싱이라고 하며 같은 시간에 여러 개의 프로그램을 띄우는 시분할 방식을 멀티태스킹이라고 한다 프로세스 상태 이미지 출처 : https://media.vlpt.us/images/mainxcharacter/post/0051a678-9750-4be8-9cd7-5effde749e44/image.png - 제출(submit) : 작업을 처리하기 위해 사용자가 작업을 시스템에 제출한 상태 - 접수(hold) : 제출된 작업이 스풀 공간인 디스크의 할당.. 더보기
stress 명령어 stress 명령어 - 지정된 하위 시스템을 지정된 부하에 주는 도구 stress 패키지 설치 yum install -y stress stress --version $ stress --version stress 1.0.4 stress 명령어 옵션 stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s $ stress --help `stress' imposes certain types of compute stress on your system Usage: stress [OPTION [ARG]] ... -?, --help show this help statement --version show version statement -v, --verbose be ve.. 더보기
CentOS 7에서 Created slice 및 Starting Session과 같은 로그를 제거하는 방법은 CentOS 7에서 Created slice 및 Starting Session과 같은 로그를 제거하는 방법 테스트 환경 $ cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" message 로그 확인 $ tail -f /var/log/messages Aug 19 13:30:01 bvm-web12 systemd: Started Session 395 .. 더보기
FTPS(FTP + SSL/TLS) 서버를 구성하는 방법(vsftpd) FTPS(FTP + SSL/TLS) 서버를 구성하는 방법(vsftpd) vsftpd(vsftpd Very Secure FTP Daemon)는 Linux 및 Unix 시스템에서 매우 안전한 FTP 서버를 구성하는 데 사용되는 소프트웨어입니다. 이를 사용하여 FTPS(FTP + SSL/TLS) 서버를 구성합니다. 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) vsftpd 설치 yum install -y vsftpd systemctl --now enable vsftpd FTPS 서버 구성(FTP + SSL/TLS) ftps 포트 확인 cat /etc/services | grep ftps $ cat /etc/services | gre.. 더보기
[리눅스] 도커 네트워크(bridge) 생성 도커 네트워크(bridge) 생성 - https://docs.docker.com/engine/reference/commandline/network_create/ docker network ls $ docker network ls NETWORK ID NAME DRIVER SCOPE 6796a63d6574 bridge bridge local 3edc63ab63b3 host host local 54bcfe43a226 none null local docker network inspect NETWORK_ID $ docker network inspect 6796a63d6574 [ { "Name": "bridge", "Id": "6796a63d657459c976414bb6e85be17a6772ac4c23e45b2dd.. 더보기

728x90