반응형
OS
[Ubuntu] docker-compose 최신 버전 설치
[Ubuntu] docker-compose 최신 버전 설치
2023.01.17기존 docker-compose 제거 $ sudo apt-get remove docker-compose -y jq 라이브러리 설치 $ sudo apt install jq docker-compose 최신 버전 설치 $ VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r) $ DESTINATION=/usr/bin/docker-compose $ sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION $ sudo ..
[Ubuntu] Docker 설치 (Install Docker)
[Ubuntu] Docker 설치 (Install Docker)
2022.10.24업데이트 & 패키지 설치 $ sudo apt update $ sudo apt-get install -y ca-certificates \ curl \ software-properties-common \ apt-transport-https \ gnupg \ lsb-release GPG키 및 저장소 추가 $ sudo mkdir -p /etc/apt/keyrings $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg $ echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.g..
[Windows 10] WSL2로 리눅스(Ubuntu) 설치
[Windows 10] WSL2로 리눅스(Ubuntu) 설치
2022.10.24요구 사항 Windows 10 버전 2004 이상(빌드 19041 이상) 또는 Windows 11 버전 확인 방법 winver 기능 활성화 [제어판] - [프로그램] - [프로그램 및 기능] - [Windows 기능 켜기/끄기] 다음 체크박스 체크(V) [✔] Hyper-V [✔] Linux용 Windows 하위 시스템 확인 후 윈도우 재부팅 설치 WSL2 설치 PowerShell 실행 후 아래 명령어 입력 wsl --install Linux 커널 업데이트 패키지 설치 https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi PowerShell에서 다음과 같은 명령어 입력 wsl --set-default-version 2 WSL 기..
[CentOS] 방화벽 포트 열기 (firewall-cmd)
[CentOS] 방화벽 포트 열기 (firewall-cmd)
2022.05.02$ firewall-cmd --permanent --zone=public --add-port=포트번호/tcp $ firewall-cmd --reload $ firewall-cmd --list-all
[OS] 프로세스 스케줄링(CPU 스케줄링, 스케줄링 알고리즘)
[OS] 프로세스 스케줄링(CPU 스케줄링, 스케줄링 알고리즘)
2020.07.221. 스케줄러 / 스케줄링이란? 작업 관리자를 실행해 본 적이 있다면 아래와 같은 화면을 본 적이 있을 것이다. 위 그림과 같이 여러개의 프로세스의 정보를 확인 할 수 있다. 여기서 프로세스란, 운영체제에서 실행되는 프로그램의 최소 단위, 실행되고 있는 프로그램이라 이해하면 된다. 이 프로세스들은 어디에서 어떻게 실행되는 걸까? 답은, 컴퓨터의 두뇌라 하는 CPU의 코어에서 실행되고 있다. 옛날에는 일반 소비자용 CPU의 경우 1개의 코어를 가지는 것이 대부분이었다. 이 말은 CPU가 한 번에 한 개의 연산을 수행한다는 것인데, 도대체 그 시절에는 인터넷을 하면서 음악을 듣고 동시에 게임도 할 수 있었던 걸까? 바로 컨텍스트 스위칭(Context switching)이라는 기술 때문에 가능하다. 컴퓨터에서..
[Shell Command] 특정 행만 출력(특정 라인만 출력)
[Shell Command] 특정 행만 출력(특정 라인만 출력)
2019.11.29Shell 명령어를 입력하여 출력된 값에서 원하는 라인만 보고 싶은 경우가 있다. 예를 들어, $ ll 합계 588 drwxr-xr-x 2 root root 61 11월 29 10:43 bin drwxr-xr-x 6 root root 84 11월 13 16:01 cmd drwxr-xr-x 5 root root 64 11월 13 16:01 configs -rw-r--r-- 1 root root 403720 11월 29 16:08 front_debug.log -rw-r--r-- 1 root root 521 11월 13 16:01 go.mod -rw-r--r-- 1 root root 4336 11월 13 16:01 go.sum drwxr-xr-x 10 root root 132 11월 13 16:01 pkg d..
[CentOS7] 리눅스 커널 업그레이드 / 업데이트(linux kernel upgrade / update)
[CentOS7] 리눅스 커널 업그레이드 / 업데이트(linux kernel upgrade / update)
2019.11.27읽어보기 전에.. 이 포스트는 https://razorbacky.blogspot.com/2019/06/cent-os-7-elrepo-graf.html를 출처로 작성하였습니다. 자세한 정보를 원하신다면 위 링크를 참고하시길 바랍니다! 1. CentOS7 커널 업데이트 리눅스 커널을 수동으로 업그레이드하려고 하면 복잡하며 귀찮은 작업들이 많고 시간도 오래 걸린다. 따라서 이번 포스트에서는 elrepo 저장소를 통해 커널을 업그레이드하는 방법을 알아 볼 것이다. elrepo란? Enterprise Linux 용 커뮤니티 기반 저장소이며, RHEL(RedHat Enterprise Linux) 및 이를 기반으로 꾸며진 기타 배포판들(Fedora, CentOS, Scientific)에 대한 지원을 제공하는 저장소이..
cmake 최신버전 설치, 업데이트 (cmake latest version install, update)
cmake 최신버전 설치, 업데이트 (cmake latest version install, update)
2019.11.27이 글은 CentOS7 환경 기준으로 작성되었습니다. 최신 버전 다운로드 cmake 홈페이지에 들어가서 최신 버전을 확인한다. (글 쓴 당시 최신 버전 3.16.0) https://cmake.org/download/ Download | CMake Current development distribution Each night binaries are created as part of the testing process. Other than passing all of the tests in CMake, this version of CMake should not be expected to work in a production environment. It is being produced so that us cma..
gcc 버전 업데이트 / 업그레이드 (gcc version update / upgrade)
gcc 버전 업데이트 / 업그레이드 (gcc version update / upgrade)
2019.11.27이 글은 CentOS7 기준으로 작성하였습니다. 현재 내 gcc 버전 확인 $ gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Developer Toolset 설치 일반적인 방법으로 gcc 버전을 업데이트하려면 번거롭기 때문에 Developer Toolset을 설치해서 한 번에 업데이트시킨다. 이 ..
[Shell Command] 사용자 비밀번호(패스워드) 변경, 사용자 비밀번호(패스워드) 실패 횟수 초기화
[Shell Command] 사용자 비밀번호(패스워드) 변경, 사용자 비밀번호(패스워드) 실패 횟수 초기화
2019.09.27비밀번호(패스워드) 변경 passwd 사용자계정 비밀번호(패스워드) 실패 횟수 초기화 pam_tally2 --user 사용자계정 --reset
[vi] 전체 내용 지우기
[vi] 전체 내용 지우기
2019.09.19gg 첫줄로 이동 dG 현재 줄부터 마지막 줄 까지 삭제 출처: https://noota.tistory.com/entry/vi-전체-지우기 [누더기]
[rsync] rsync마다 매번 패스워드를 물어 볼 때 해결법
[rsync] rsync마다 매번 패스워드를 물어 볼 때 해결법
2019.09.02서론 원격 서버로 배포하는 스크립트를 짰는데, 이 배포 스크립트는 rsync를 통해 원격 서버로 배포하는 로직을 가지고 있다. rsync를 할 때마다 사용자에게 패스워드를 물어보면 여간 귀찮은 일이 아닌데, 아래와 같이 해결하면 된다. 해결 $ cd ~/.ssh $ ssh-keygen -t rsa Enter file in which to save the key (/root/.ssh/id_rsa): [enter입력] Enter passphrase (empty for no passphrase): [enter입력] Enter same passphrase again: [enter입력] rsa 암호화 방식의 공개키를 생성한다. 해당 경로에(~/) id_rsa와 id_rsa.pub라는 파일이 생성된다 $ ssh-c..