본문 바로가기

리눅스

[리눅스] git branch 명령어 git branch 명령어 현재 작업 중인 브랜치 확인 git branch $ git branch * main 브랜치 생성하기 git branch develop $ git branch * main develop 브랜치 전환하기 (main -> develop) git checkout develop $ git checkout develop branch 'develop' set up to track 'origin/develop'. Switched to a new branch 'develop' $ git branch * develop main test1 브랜치 생성 git branch test1 브랜치 삭제 git branch -d test1 $ git branch -d test1 Deleted branch t.. 더보기
[draft] 우분투에서 bash 자동 완성 기능을 사용하는 방법 우분투에서 bash 자동 완성 기능을 사용하는 방법Bash 자동 완성은 명령어나 파일 이름 등을 부분적으로 입력했을 때 [Tab] 키를 눌러 나머지를 자동으로 완성해주는 기능입니다.1. bash-completion 패키지 설치우분투에는 기본적으로 bash-completion 패키지가 설치되어 있을 수 있지만 설치되어 있지 않은 경우 아래 명령어로 설치할 수 있습니다.apt info bash-completion$ apt info bash-completion Package: bash-completionVersion: 1:2.11-5ubuntu1Priority: standardSection: shellsOrigin: UbuntuMaintainer: Ubuntu Developers Original-Mainta.. 더보기
[리눅스] Ansible을 초기 구성하는 방법 Ansible을 초기 구성하는 방법 구성 환경 Node 호스트 이름 아이피 주소 비고 Control node node-01 192.168.0.51 Managed node node-02 192.168.0.52 ssh keygen 생성 $ ssh-keygen -t rsa -C "vagrant@ControlNode" ssh key 교환 ssh-copy-id vagrant@192.168.0.51 ssh-copy-id vagrant@192.168.0.52 ansible.cfg 구성 Ansible 구성 설정 - https://docs.ansible.com/ansible/latest/reference_appendices/config.html ansible.cfg 파일 생성하기 ansible-config init --.. 더보기
[리눅스] 우분투에서 Ansible을 설치하는 방법 우분투에서 Ansible을 설치하는 방법 테스트 환경 $ lsb_release -d Description:Ubuntu 22.04.2 LTS Ansible의 최신 버전을 설치하려면 Ansible의 공식 PPA(Personal Package Archive)를 추가하여 설치할 수 있습니다. 1. 먼저, software-properties-common 패키지를 설치합니다. sudo apt update sudo apt install -y software-properties-common 2. 다음 명령어를 사용하여 Ansible PPA를 추가합니다. sudo apt-add-repository -y ppa:ansible/ansible $ sudo apt-add-repository -y ppa:ansible/ansib.. 더보기
2TB 이상의 디스크를 사용하기 위한 방법(GPT 파티션을 설정하는 방법) 2TB 이상의 디스크를 사용하기 위한 방법(GPT 파티션을 설정하는 방법) 2TB 이상의 디스크를 사용하기 위해서는 GPT(GUID Partition Table) 파티션 스키마를 사용해야 합니다. MBR(Master Boot Record) 파티션 스키마는 2TB 이상의 디스크를 지원하지 않습니다. 디스크 확인 fdisk -l $ fdisk -l ... Disk /dev/sdb: 6.55 TiB, 7201213407232 bytes, 14064869936 sectors Disk model: LOGICAL VOLUME Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minim.. 더보기
[리눅스] HP ProLiant DL380 G7 Raid(raid 5) 구성하는 방법 HP ProLiant DL380 G7 Raid(raid 5) 구성하는 방법 테스트 환경 $ dmidecode -t system | egrep "Product Name" Product Name: ProLiant DL380 G7 $ lsb_release -d Description:Ubuntu 22.04 LTS 논리 드라이브 삭제 현재 구성되어 있는 논리 드라이브 확인 ssacli controller slot=0 logicaldrive all show $ ssacli controller slot=0 logicaldrive all show Smart Array P410i in Slot 0 (Embedded) Array A logicaldrive 1 (279.37 GB, RAID 1, OK) Array B log.. 더보기
[draft] 우분투에 PHP-FPM 8.1을 설치하는 방법 우분투에 PHP-FPM 8.1을 설치하는 방법PHP-FPM 8.1은 PHP 8.1 버전의 FastCGI Process Manager(php-fpm)입니다.테스트 환경$ lsb_release -dDescription: Ubuntu 22.04.2 LTS$ uname -mx86_64$ getconf LONG_BIT64필수 패키지 설치sudo apt-get install -y zlib1g-dev software-properties-commonPPA(Personal Package Archive) 리포지토리를 시스템의 패키지 소스 목록에 추가sudo add-apt-repository -y ppa:ondrej/php패키지 목록 업데이트sudo apt-get updatePHP 8.1 설치php(php-fpm) 8.. 더보기
우분투에서 HPE ssacli 도구 설치하는 방법 우분투에서 HPE ssacli 도구 설치하는 방법 HP Smart Storage Administrator (ssacli)를 설치하려면 다음과 같은 단계를 따르면 됩니다. 테스트 환경 $ lsb_release -d Description:Ubuntu 22.04 LTS 1. 새로운 sources.list 파일 생성하기 아래 명령어를 사용하여 새로운 sources.list 파일을 생성합니다. sudo vim /etc/apt/sources.list.d/mcp.list 2. HPE Management Component Pack 저장소 추가하기 생성한 파일에 다음과 같이 저장소를 추가합니다. lsb_release -c $ lsb_release -c Codename:jammy $ cat /etc/apt/sources... 더보기