본문 바로가기

728x90
반응형

전체 글

docker compose 리소스 제약 조건 구성(docker compose resource) docker compose 리소스 제약 조건 구성(docker compose resource) docker compose 파일 생성 vim docker-compose.yml version: '3.8' services: centos7-systemd: image: anti1346/centos7:systemd container_name: centos7-systemd privileged: true hostname: centos7 restart: always deploy: resources: limits: cpus: '0.50' memory: 50M cap_add: - SYS_ADMIN volumes: - /sys/fs/cgroup:/sys/fs/cgroup:ro ports: - "8082:80" - "2222:.. 더보기
wget 명령어를 사용하여 프록시를 설정하는 방법 wget 명령어를 사용하여 프록시를 설정하는 방법 1. 명령어 옵션으로 설정 wget 명령어에 직접 옵션을 추가하여 프록시를 설정할 수 있습니다. -e 옵션은 환경 변수를 설정하는 역할을 합니다. use_proxy=yes는 프록시 사용을 활성화하고 http_proxy는 HTTP 프록시의 주소를 지정합니다. wget -e use_proxy=yes -e http_proxy=http://proxy.example.com:8080 http://example.com/file.txt sudo wget -e use_proxy=yes -e http_proxy=http://your-proxy-server:your-proxy-port -e https_proxy=http://your-proxy-server:your-proxy.. 더보기
프록시 서버를 사용하도록 Docker Daemon 구성하기 프록시 서버를 사용하도록 Docker Daemon 구성하기daemon.json 파일vim /etc/docker/daemon.json{ "log-driver": "json-file", "log-opts": { "max-size": "10m", "max-file": "3" }, "proxies": { "http-proxy": "http://your-proxy-server:your-proxy-port", "https-proxy": "http://your-proxy-server:your-proxy-port", "no-proxy": "localhost,127.0.0.1" }}Docker 데몬 설정(daemon.json)log-opts 블록log-driver : 로그 드라이버를 .. 더보기
우분투에서 활성화된 네트워크 인터페이스를 비활성화하는 방법 우분투에서 활성화된 네트워크 인터페이스를 비활성화하는 방법1. ifconfig 또는 ip 명령어 사용네트워크 인터페이스를 비활성화하려면 ifconfig 또는 ip 명령어를 사용할 수 있습니다. 현재 활성화된 네트워크 인터페이스 확인ip link$ ip link1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:002: enp3s0f0: mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 link/ether e4:11:5b:0e:e6:76 brd .. 더보기
우분투에 python 3를 최신 버전으로 업데이트하는 방법 우분투에 python 3를 최신 버전으로 업데이트하는 방법테스트 환경운영체제 정보$ lsb_release -dDescription: Ubuntu 22.04.2 LTS1. 현재 python 3 버전 확인현재 설치된 Python 3의 버전을 확인합니다.python3 --version$ python3 --versionPython 3.10.122. python 3을 최신 버전으로 업데이트우분투 패키지 관리자를 사용하여 Python 3을 업데이트합니다.sudo apt-get updatesudo apt-get install --upgrade python3우분투 패키지 관리자를 사용하여 Python 3.11을 설치합니다.sudo apt-get install -y python3.113. alternative 설정.. 더보기
smem 명령어 smem 명령어 smem은 시스템 메모리 사용에 대한 자세한 정보를 제공하는 도구입니다. smem 설치 smem 명령어는 Linux에 기본적으로 설치되어 있지 않을 수 있으므로 필요한 경우 설치해야 합니다. Ubuntu 기반 시스템 sudo apt-get update sudo apt-get install smem CentOS 기반 시스템 sudo yum install smem smem 명령어의 기본 구문 smem [options] 옵션 -s: 프로세스별 메모리 사용량 확인 -w: 시스템 전체의 메모리 사용량 확인 -t: 메모리 사용량의 추세 분석 $ smem -help Usage: smem [options] Options: -h, --help show this help message and exit -H.. 더보기
PFX 파일을 생성하는 방법 PFX 파일을 생성하는 방법PFX 파일은 개인 키와 공개 키 (인증서)를 하나의 파일에 포장하여 저장합니다. PFX(Personal Information Exchange) 파일은 개인 키와 해당 인증서를 포함하는 포맷으로 일반적으로 Windows 환경에서 사용됩니다.개인 키 및 인증서 생성openssl req \-newkey rsa:4096 \-x509 \-sha256 \-days 3650 \-keyout privatekey.pem \-out certificate.pem \-subj "/C=KR/ST=Seoul/L=Jongno-gu/O=SangChul Co., Ltd./OU=Infrastructure Team/CN=*.example.com"* 비밀번호 없이 개인 키 생성 : -nodes 옵션$ opens.. 더보기
OpenSSL을 사용하여 자체 서명된 SSL/TLS 인증서를 생성하는 방법 OpenSSL을 사용하여 자체 서명된 SSL/TLS 인증서를 생성하는 방법자체 서명된(셀프 서명된) SSL/TLS 인증서를 생성하려면 OpenSSL을 사용할 수 있습니다.1. CSR 및 키 생성openssl req -newkey rsa:4096 \-x509 \-sha256 \-days 3650 \-nodes \-out _wildcard_example_com.crt \-keyout _wildcard_example_com.key \-subj "/C=KR/ST=Seoul/L=Jongno-gu/O=SangChul Co., Ltd./OU=Infrastructure Team/CN=*.example.com"req : CSR (Certificate Signing Request)을 생성하는 OpenSSL 명령어입니다.n.. 더보기

728x90
반응형