From 44002bf5ec927777fb8bebf5e760d75555354960 Mon Sep 17 00:00:00 2001 From: KWON Date: Tue, 23 Dec 2025 12:37:56 +0900 Subject: [PATCH] =?UTF-8?q?README.md:=20=ED=95=9C=EC=A4=84=20=EB=AA=85?= =?UTF-8?q?=EB=A0=B9=EC=96=B4=EB=A5=BC=20tar.gz=20=EB=8C=80=EC=8B=A0=20raw?= =?UTF-8?q?=20=ED=8C=8C=EC=9D=BC=20=EC=A7=81=EC=A0=91=20=EB=8B=A4=EC=9A=B4?= =?UTF-8?q?=EB=A1=9C=EB=93=9C=20=EB=B0=A9=EC=8B=9D=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a51927b..4f7c52e 100644 --- a/README.md +++ b/README.md @@ -86,51 +86,50 @@ chmod +x proxmox/setup.sh ```bash # VM에 SSH 접속 후 실행 -curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz && cd cafe24-testserver-main && chmod +x vm/setup_common.sh && ./vm/setup_common.sh +curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/vm/setup_common.sh | bash ``` #### PHP 8.2 설치 ```bash # 위의 setup_common.sh 이후 실행 -curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz && cd cafe24-testserver-main && chmod +x vm/install_php.sh && ./vm/install_php.sh 8.2 +curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/vm/install_php.sh | bash -s 8.2 ``` #### PHP 8.4 설치 ```bash -curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz && cd cafe24-testserver-main && chmod +x vm/install_php.sh && ./vm/install_php.sh 8.4 +curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/vm/install_php.sh | bash -s 8.4 ``` #### MariaDB 설정 (LXC에서 root로 실행) ```bash -curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz && cd cafe24-testserver-main && chmod +x lxc/setup_mariadb.sh && ./lxc/setup_mariadb.sh +curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/lxc/setup_mariadb.sh | bash ``` #### Proxmox 전체 자동화 (Proxmox 호스트에서 root로 실행) ```bash -curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz && cd cafe24-testserver-main && chmod +x proxmox/setup.sh && ./proxmox/setup.sh +curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/proxmox/setup.sh | bash ``` #### Proxmox 개별 VM 생성 (Proxmox 호스트에서 root로 실행) ```bash -curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz && cd cafe24-testserver-main && chmod +x proxmox/create_vm.sh && ./proxmox/create_vm.sh +curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/proxmox/create_vm.sh | bash ``` #### Proxmox 개별 LXC 생성 (Proxmox 호스트에서 root로 실행) ```bash -curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/archive/main.tar.gz | tar xz && cd cafe24-testserver-main && chmod +x proxmox/create_lxc.sh && ./proxmox/create_lxc.sh +curl -fsSL https://git.siane.kr/firstgarden/cafe24-testserver/raw/main/proxmox/create_lxc.sh | bash ``` **한줄 명령어 설명:** -- `curl -fsSL ... | tar xz` : 저장소를 압축파일로 다운로드하여 압축 해제 -- `cd cafe24-testserver-main` : 압축 해제된 디렉토리로 이동 -- `chmod +x` : 스크립트에 실행 권한 부여 -- `./스크립트명` : 스크립트 실행 +- `curl -fsSL` : 조용하고 안전하게 저장소에서 스크립트 파일 다운로드 +- `| bash` : 다운로드된 스크립트를 bash로 직접 실행 +- `bash -s [인자]` : PHP 버전처럼 스크립트에 인자 전달 (예: `bash -s 8.2`) ---