전체 글 썸네일형 리스트형 ab(Apache Bench) tools 에러 ab(Apache Bench) tools 에러ab 명령어Usageab [options] [http[s]://]hostname[:port]/pathOptions are: -n requests Number of requests to perform (= 요청수)-c concurrency Number of multiple requests to make at a time (=동시 요청수(사용자))-t timelimit Seconds to max. to spend on benchmarking This implies -n 50000 -s timeout Seconds to max. wait for each response Default is 30 secondsab 에러ab -c 10000 -n 1000 http://l.. 더보기 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".. 더보기 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 availableMem: 3.8G 162M 2.7G 540K 997M 3.4GSwap: 0B 0B 0Bcommand 모듈$ ansible db1 -m command -a "cat /etc/passwd"db1 | CHANGED | rc=0 >>r.. 더보기 Amazon Linux에 Ansible 설치하기 Amazon Linux에 Ansible 설치하기설치 환경$ cat /etc/os-releaseNAME="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 ansible2Installing: ansibleInstalling for dependencies: libtomcrypt libtommath python-keyczar 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에 가까울 때: 시스템이 작업 부하.. 더보기 macOS Big Sur: dyld: Library not loaded: libperl.dylib 오류 macOS Big Sur: dyld: Library not loaded: libperl.dylib 오류오류$ vim .ssh/configdyld: 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/configBig Sur에서 Perl 5.28이 시스템에서 제거되면서, MacVim이 의존하던 libperl.dylib를 찾지 못해 크래시1. MacVi.. 더보기 이전 1 ··· 190 191 192 193 194 195 196 ··· 312 다음