본문 바로가기

728x90

리눅스

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 .. 더보기
리눅스 glances 명령어 glances 명령어 Glances는 리눅스 시스템 모니터링 도구로, 시스템의 리소스 사용률, 네트워크 활동, 디스크 상태 등을 실시간으로 모니터링할 수 있습니다. 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) Glances를 설치하고 사용하는 방법은 다음과 같습니다. glances 설치 sudo yum install epel-release sudo yum install -y glances glances 실행하기 터미널에서 glances 명령을 실행합니다. Glances는 기본적으로 터미널 환경에서 실행되며, 실시간으로 시스템의 상태를 모니터링합니다. Glances는 키보드에서 다양한 명령을 사용할 수 있습니다. 아래는 일부 .. 더보기
[리눅스] influxdb, grafana, telegraf 연동 influxdb, grafana, telegraf 연동 influxdb 설치 : https://sangchul.kr/335 grafana 설치 : https://sangchul.kr/334 telegraf 설치 : https://sangchul.kr/333 influxdb와 telegraf 연동하기 influxdb에서 telegraf 설정 생성 http://{Server-IP}:8086 influxdb output plugin export INFLUX_TOKEN=OwkgzsNcgkcrwQj4Rq-wtFBjM45W64e2R1kZsHHUQHZSMnwMGsVURSyN1LJG-3vpFZTAv30XJNNIAq4bYmP-TQ== telegraf --config http://192.168.70.234:8086/api.. 더보기
우분투에서 influxdb를 설치하는 방법 우분투에서 influxdb(influxdb 2.x)를 설치하는 방법 테스트 환경 $ cat /etc/os-release NAME="Ubuntu" VERSION="20.04.4 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.4 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-po.. 더보기

728x90