본문 바로가기

728x90

리눅스

우분투에서 MySQL 바이너리 파일로 설치하는 방법 우분투에서 MySQL 바이너리 파일로 설치하는 방법 테스트 환경 $ lsb_release -d Description:Ubuntu 22.04.2 LTS $ getconf LONG_BIT 64 MySQL 설치하기 1. MySQL 다운로드 - MySQL 공식 웹사이트 (https://dev.mysql.com/downloads/mysql/)에서 해당 버전의 tar 파일을 다운로드합니다. - 다운로드한 파일은 원하는 경로에 저장합니다. cd /usr/local/src wget -q https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.33-linux-glibc2.12-x86_64.tar $ ls -lh mysql-8.0.33-linux-glibc2.12-x86_64... 더보기
[리눅스] MySQL 8.0에서 비밀번호 재설정 오류 MySQL 8.0에서 비밀번호 재설정 오류 mysql> select version(); ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 이 오류는 MySQL에서 사용자의 비밀번호가 만료되었거나 기본 비밀번호를 사용하고 있는 경우 발생할 수 있습니다. 오류 메시지에서 나와 있는 대로 ALTER USER 문을 사용하여 비밀번호를 재설정해야합니다. 다음은 비밀번호 재설정 방법입니다. 1. MySQL 서버에 로그인합니다. 2. ALTER USER 문을 사용하여 새로운 비밀번호를 설정합니다. 예를 들어, 새로운 비밀번호를 "newpassword"로 설정하려면 다음과 같.. 더보기
[draft] 우분투에서 teleport를 설치하는 방법(2) 우분투에서 텔레포트(teleport)를 설치하는 방법(2)SSH 서버(node-02) 등록sudo bash -c "$(curl -fsSL https://teleport.sangchul.kr/scripts/2c64ee279f6258272bbf6ff9e5ebdfd1/install-node.sh)"$ sudo bash -c "$(curl -fsSL https://teleport.sangchul.kr/scripts/2c64ee279f6258272bbf6ff9e5ebdfd1/install-node.sh)"2023-04-25 22:50:46 KST [teleport-installer] TELEPORT_VERSION: 12.2.42023-04-25 22:50:46 KST [teleport-installer] TARG.. 더보기
[리눅스] 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.. 더보기

728x90