분류 전체보기 썸네일형 리스트형 [VSCode] Visual Studio Code를 이용한 원격(Remote) 코드 개발 Visual Studio Code를 이용한 원격(Remote) 코드 개발 1. vscode > Extensions Marketplace > Remote Development > 설치 2. 왼쪽 하단의 > 검색 창에 : re > Remote-SSH 클릭 3. ssh 접속 화면 더보기 CentOS 7에서 MongoDB Community Server를 설치하는 방법 CentOS 7에서 MongoDB Community Server를 설치하는 방법 MongoDB 설치 MongoDB의 공식 저장소를 추가하고 패키지 관리자 yum을 사용하여 설치합니다. 패키지 다운로드 URL : https://www.mongodb.com/try/download/community MongoDB(mongod) 서버 설치 MongoDB Community Server를 설치합니다. yum install https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-org-server-4.4.6-1.el7.x86_64.rpm $ yum install https://repo.mongodb.org/yum/redhat/7/mongod.. 더보기 [Ansible] lineinfile 모듈 Ansible lineinfile 모듈 lineinfile 모듈 - 호스트 파일 편집(/etc/ansible/hosts) $ ansible dbs -m lineinfile -b -K -a "dest=/etc/hosts line='10.31.3.72 galera01' state=present" BECOME password: db1 | CHANGED => { "backup": "", "changed": true, "msg": "line added" } db3 | CHANGED => { "backup": "", "changed": true, "msg": "line added" } db2 | CHANGED => { "backup": "", "changed": true, "msg": "line added" } $.. 더보기 [Ansible] shell, command, yum, user 모듈 Ansible shell, command, yum, user 모듈 Ansible에서 모듈 사용법 shell 모듈 $ ansible db1 -m shell -a "free -h" db1 | CHANGED | rc=0 >> total used free shared buff/cache available Mem: 3.8G 162M 2.7G 540K 997M 3.4G Swap: 0B 0B 0B command 모듈 $ ansible db1 -m command -a "cat /etc/passwd" db1 | CHANGED | rc=0 >> root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin ... ec2-user:x:1000:1000:EC2 Defaul.. 더보기 [Ansible] Amazon Linux에 Ansible 설치하기 Amazon Linux에 Ansible 설치하기 설치 환경 $ 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/" Ansible 설치하기 $ amazon-linux-extras install ansible2 Installing: ansible Installing for dependencies: libtomcrypt libtommath python-.. 더보기 리눅스 Load Average 리눅스 Load Average Load Averages 이 파일의 처음 세 가지 필드(값)는 로드 평균 수치로 1분, 5분, 15분 동안 평균화된 실행 대기열(state R) 또는 디스크 I/O 대기 중(state D)인 작업의 수를 나타냅니다. Load Average 값은 CPU 작업 큐에 대기 중인 프로세스의 수를 기준으로 계산됩니다. 프로세스가 실행을 기다리는 작업이 많을수록 Load Average 값은 증가합니다. 일반적으로, Load Average 값이 높을수록 시스템의 작업 부하가 더 높다는 것을 의미합니다. Load Average 값의 해석은 다음과 같습니다. 값이 0에 가까울 때: 시스템이 대부분의 시간 동안 놀고 있다(유휴 상태)는 의미입니다. 값이 1에 가까울 때: 시스템이 작업 부하.. 더보기 [Mac] bigsur dyld: Library not loaded 에러 bigsur dyld: Library not loaded 에러 에러 : $ vim .ssh/config dyld: Library not loaded: /System/Library/Perl/5.28/darwin-thread-multi-2level/CORE/libperl.dylib Referenced from: /usr/local/Cellar/macvim/8.2-169_2/MacVim.app/Contents/MacOS/Vim Reason: image not found [1] 6384 abort vim .ssh/config 조치 : $ brew install vim $ brew unlink macvim $ xcode-select --install $ brew install vim $ brew unlink vi.. 더보기 리눅스 메모리 스와핑(swapping) 리눅스 메모리 스와핑(swapping) 메모리 스와핑(Swapping)은 운영 체제에서 주기억 장치(RAM)가 부족할 때 사용되는 메모리 관리 기술입니다. 주로 리눅스와 유닉스 기반 시스템에서 사용됩니다. 메모리 스와핑은 하드 디스크나 SSD와 같은 보조 기억 장치를 사용하여 RAM에 더 이상 적재할 수 없는 데이터를 저장하고, 필요할 때 다시 RAM으로 되돌리는 방식으로 동작합니다. 메모리 스와핑은 시스템의 성능을 유지하기 위해 사용되지만, 스와핑 작업은 주 메모리보다 훨씬 느린 디스크 기반의 장치에 의존하므로, 실제로는 주 메모리가 아닌 스왑 영역에서 데이터를 처리하게 됩니다. 이로 인해 스와핑이 빈번하게 발생하면 성능 저하가 발생할 수 있습니다. 그래서 메모리 스와핑은 최대한 피하는 것이 좋습니다... 더보기 이전 1 ··· 157 158 159 160 161 162 163 ··· 279 다음