본문 바로가기

728x90

리눅스

[리눅스] macOS에 ansible 설치 macOS에 ansible 설치 테스트 환경 system_profiler SPSoftwareDataType | egrep 'System Version' $ system_profiler SPSoftwareDataType | egrep 'System Version' System Version: macOS 12.5 (21G72) ansible 설치(brew install) ansible search brew search ansible $ brew search ansible ==> Formulae ansible ansible-cmdb ansible-language-server ansible-lint ansible@2.8 ansible@2.9 ==> Casks ansible-dk ansible informatio.. 더보기
macOS 버전 정보 확인(command) macOS 버전 정보 확인(command) macOS 버전 확인 $ sw_vers -h Usage: sw_vers [-productName|-productVersion|-buildVersion] sw_vers $ sw_vers ProductName:macOS ProductVersion:12.5 BuildVersion:21G72 system_profiler 명령 $ system_profiler -h Usage: system_profiler [-listDataTypes] system_profiler [-xml | -json] [-timeout n] [-detailLevel n] system_profiler [-xml | -json] [-timeout n] [dataType1 ... dataTypeN] -de.. 더보기
GitLab에서 리포지토리 미러링을 구성하는 방법(gitlab -> github 미러링) GitLab에서 리포지토리 미러링을 구성하는 방법(gitlab -> github 미러링) github 리포지토리 생성 및 tokens 생성 repository 생성 repository name : gitlab_mirror tokens 생성 Settings > Developer settings > Personal access tokens gitlab 프로젝트 생성 및 미러링 설정 프로젝트 생성 프로젝트 그룹 : testG 프로젝트 이름 : gitlab_source 미러링 설정 testG > gitlab_source > 저장소 설정 Git 저장소 URL : https://아이디@github.com/아이디/gitlab_morror.git 미러 방향 : Push 인증 방법 : 패스워드 패스워드 : 2691109.. 더보기
Let's Encrypt(certbot) SSL 인증서를 발급하는 방법 Let's Encrypt(certbot) SSL 인증서를 발급하는 방법 Let's Encrypt는 무료로 SSL/TLS 인증서를 발급하는 공개 기관으로, Certbot라는 도구를 통해 간단하게 SSL 인증서를 발급할 수 있습니다. Plugin Auth Inst Notes Challenge types (and port) apache Y Y Apache를 사용하여 인증서 획득 및 설치를 자동화합니다. http-01(80) nginx Y Y Nginx로 인증서 획득 및 설치를 자동화합니다. http-01 (80) webroot Y N 이미 실행 중인 웹 서버의 webroot 디렉토리에 기록하여 인증서를 얻습니다. http-01(80) standalone Y N "standalone" 웹 서버를 사용하여 인증서.. 더보기
맥(Mac)에서 AWS CLI를 최신 버전으로 설치하는 방법 맥(Mac)에서 AWS CLI를 최신 버전으로 설치하는 방법 AWS Command Line Interface(AWS CLI) 설치 curl -s "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" sudo installer -pkg AWSCLIV2.pkg -target / > sudo installer -pkg AWSCLIV2.pkg -target / Password: installer: Package name is AWS Command Line Interface installer: Installing at base path / installer: The install was successful. AWS CLI 경로 확인 which aws > w.. 더보기
[draft] 우분투에 node.js와 npm을 설치하는 방법 우분투에 node.js와 npm을 설치하는 방법NVM(Node Version Manager)NPM(Node Package Manager)테스트 환경운영체제 버전 정보$ cat /etc/lsb-releaseDISTRIB_ID=UbuntuDISTRIB_RELEASE=22.04DISTRIB_CODENAME=jammyDISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"1. NVM 설치NVM 설치 스크립트를 다운로드하고 실행합니다.curl -s -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash$ curl -s -o- https://raw.githubusercontent.com/creationix/nvm/m.. 더보기
[draft] 우분투에서 스왑 메모리를 설정하는 방법 우분투(ubuntu 22.04)에서 스왑 메모리(swap memory)를 설정하는 방법Ubuntu 22.04에서는 기본적으로 스왑 파일을 자동으로 생성하도록 설정되어 있습니다. 그러나 기본 스왑 파일 크기는 일반적으로 시스템의 물리적 메모리 크기에 따라 자동으로 조정됩니다. 일반적으로 Ubuntu 22.04에서는 물리적 메모리 크기의 약 50%에서 66% 정도를 기본 스왑 파일 크기로 설정합니다. 예를 들어, 시스템이 4GB RAM을 가지고 있다면 기본 스왑 파일 크기는 약 2GB에서 2.7GB 정도로 설정될 수 있습니다. 이렇게 작은 기본 스왑 파일은 일반적으로 일상적인 작업 및 가벼운 서버 운영에는 충분하지만, 메모리 집약적인 작업이나 대규모 애플리케이션을 실행할 때에는 스왑 공간이 부족할 수 있습니.. 더보기
HAProxy 컴파일을 통해 설치하는 방법(source compile) HAProxy 컴파일을 통해 설치하는 방법(source compile) 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 의존성 패키지 설치 yum install -y make gcc perl pcre-devel zlib-devel openssl-devel lua-devel systemd-devel $ lua -v Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio lua 5.3 업그레이드(lua-5.3.0) wget http://www.nosuchhost.net/~cheese/fedora/packages/epel-7/x86_64/cheese-release-7-1.noarch.rpm yum .. 더보기

728x90