리눅스 썸네일형 리스트형 [WIP] Ansible inventory(인벤토리) 설정하는 방법 Ansible inventory(인벤토리) 설정하는 방법1. Ansible Inventory란?Ansible은 Inventory(인벤토리) 라고 불리는 호스트 목록(또는 그룹)을 기반으로 여러 서버(관리 대상 노드)에 대해 동시에 작업을 수행합니다.Inventory는 대상 서버 리스트 역할을 수행그룹 및 패턴을 사용해 실행 대상 선택 가능INI, YAML, 디렉터리 구조 등 다양한 방식 지원2. Ansible 설정 파일 우선순위ANSIBLE_CONFIG (환경 변수)ansible.cfg (현재 디렉토리)~/.ansible.cfg (홈 디렉토리)/etc/ansible/ansible.cfg (기본 설정)3. 사용자 전용 ansible.cfg 설정vim ~/.ansible.cfgcat ~/.ansible.cf.. 더보기 [WIP] CentOS 7에서 Ansible 설치 및 업그레이드하는 방법 CentOS 7에서 Ansible 설치 및 업그레이드하는 방법테스트 환경운영체제 정보$ cat /etc/redhat-releaseCentOS Linux release 7.9.2009 (Core)기본 Python 환경 확인CentOS 7의 기본 Python은 2.x 계열입니다.$ python --versionPython 2.7.5Ansible 설치yum을 이용한 Ansible 설치yum install -y ansible ansible-python3Ansible 버전 확인ansible --version$ ansible --versionansible 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/... 더보기 [WIP] macOS에서 Ansible 설치하는 방법 macOS에서 Ansible 설치하는 방법테스트 환경macOS 버전 확인system_profiler SPSoftwareDataType | egrep 'System Version'$ system_profiler SPSoftwareDataType | egrep 'System Version' System Version: macOS 12.5 (21G72)Ansible 설치(Homebrew Install)Homebrew를 통한 Ansible 패키지 검색Homebrew 저장소에 등록된 Ansible 관련 패키지를 확인합니다.brew search ansible$ brew search ansible==> Formulaeansible ansible-cmdb ansible-language-server .. 더보기 [WIP] docker compose의 version 속성이 폐지되었다는 경고 메시지 docker compose의 version 속성이 폐지되었다는 경고 메시지Docker Compose에서 version 속성이 폐지된 이유는 Docker Compose V2의 출시와 관련이 있습니다. Docker Compose V2는 Go 언어로 재작성되어 Docker CLI와 통합되었습니다. 이를 통해 보다 일관된 사용자 경험을 제공하고 많은 변경 사항이 도입되었습니다. Docker Compose V2 이상 버전에서는 자동으로 최신 구성 파일 스키마를 사용하므로 version 속성을 명시적으로 정의할 필요가 없습니다.경고 메시지$ docker compose up -dWARN[0000] /docker/docker-compose.yml: `version` is obsolete최신 Docker Compose .. 더보기 [WIP] 우분투에서 Ghost 블로그를 삭제하는 방법 우분투에서 Ghost 블로그를 삭제하는 방법작업 디렉토리로 이동cd /var/www/ghostGhost 삭제ghost uninstall(또는)echo '' | ghost uninstall$ ghost uninstallLove open source? We’re hiring JavaScript Engineers to work on Ghost full-time.https://careers.ghost.orgWARNING: Running this command will delete all of your themes, images, data, any files related to this Ghost instance, and the contents of this folder!There is no going back!.. 더보기 [draft] 우분투에서 Ghost 블로그를 설치하는 방법 우분투에서 Ghost 블로그를 설치하는 방법Ghost는 Node.js로 작성된 오픈 소스 블로그 플랫폼입니다. Nginx 및 MySQL과 함께 Ghost를 설치합니다.전제 조건공식적으로 권장되는 프로덕션 설치에는 다음 스택이 필요합니다.Ubuntu 20.04 또는 Ubuntu 22.04NGINX (SSL을 위한 최소 1.9.5)지원되는 Node.js 버전MySQL 8Systemd적어도 1GB 메모리가 있는 서버등록된 도메인 이름테스트 환경운영체제 버전 정보$ lsb_release -dDescription: Ubuntu 22.04.2 LTS1. Nginx 설치 및 설정sudo ln -s /etc/nginx/conf.d /etc/nginx/sites-availablesudo ln -sf /etc/ngi.. 더보기 [WIP] 리눅스에 콘솔 접근 또는 원격 접근 시 경고 메시지를 설정하는 방법 리눅스에 콘솔 접근 또는 원격 접근 시 경고 메시지를 설정하는 방법/etc/issue, /etc/issue.net 그리고 /etc/motd는 모두 리눅스 시스템에서 사용자에게 표시되는 메시지를 설정하는 파일들입니다. 각각의 파일은 목적과 표시되는 시기에서 차이점이 있습니다.1. /etc/issue 설정 방법(콘솔 접근 시 경고 메시지 설정)/etc/issue 파일은 콘솔에 로그인할 때 표시되는 메시지를 설정하는 데 사용됩니다./etc/issue 파일에 작성한 메시지는 로그인 화면에서 사용자가 아이디와 비밀번호를 입력하기 전에 표시됩니다.콘솔(터미널)로 직접 로그인할 때 표시되는 메시지에 주로 사용됩니다.vim /etc/issueWelcome to My Linux Server!Please enter you.. 더보기 [WIP] CentOS Yum Repository 서버를 구축하는 방법 CentOS Yum Repository 서버를 구축하는 방법CentOS Yum Repository 서버를 구축하는 것은 패키지 관리와 시스템 업데이트를 위해 중요한 작업입니다.웹 서버 설치 (Apache HTTPD 예시)Yum Repository를 호스팅하기 위해 웹 서버를 설치합니다. 아파치 웹 서버를 설치하는 방법은 다음과 같습니다.repository 구축을 위한 필수 패키지 다운로드createrepo 설치yum install -y createrepo yum-utilsYum Repository 디렉터리 구조 설계cd /app/repo_root/reop$ tree -L 5.└── repo ├── centos │ ├── 7 -> 7.9.2009 │ ├── 7.9.2009 │ .. 더보기 이전 1 ··· 16 17 18 19 20 21 22 ··· 128 다음