README.md: 한줄 명령어를 tar.gz 대신 raw 파일 직접 다운로드 방식으로 변경

This commit is contained in:
2025-12-23 12:37:56 +09:00
parent 417d8360e8
commit 44002bf5ec

View File

@ -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`)
---