README.md: 개별 스크립트 한줄 실행 명령어 추가

This commit is contained in:
2025-12-23 12:36:07 +09:00
parent 1332a5d1b2
commit 417d8360e8

View File

@ -78,6 +78,62 @@ chmod +x proxmox/setup.sh
---
### ⚡ 방법 3: 개별 스크립트 한줄 실행
각 스크립트를 독립적으로 한 명령어로 다운로드 > 권한 설정 > 실행할 수 있습니다.
#### VM 공통 설정 (Apache, FTP, Vim, Bash)
```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
```
#### 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
```
#### 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
```
#### 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
```
#### 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
```
#### 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
```
#### 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 ... | tar xz` : 저장소를 압축파일로 다운로드하여 압축 해제
- `cd cafe24-testserver-main` : 압축 해제된 디렉토리로 이동
- `chmod +x` : 스크립트에 실행 권한 부여
- `./스크립트명` : 스크립트 실행
---
### 📖 방법 2: 수동 생성 (단계별)
#### 1⃣ Proxmox에서 VM 생성