soyailabs / README_SERVER.md
SOY NV AI
feat: ν˜„μž¬ μž‘μ—… λ‚΄μš© μ €μž₯
c2280e3
|
raw
history blame
1.45 kB
# μ„œλ²„ μ‹€ν–‰ κ°€μ΄λ“œ
## μ„œλ²„ μ‹œμž‘ 방법
### 방법 1: μžλ™ μž¬μ‹œμž‘ 슀크립트 (ꢌμž₯)
**PowerShell μ‚¬μš©:**
```powershell
.\start_server_background.ps1
```
**배치 파일 μ‚¬μš©:**
```cmd
start_server.bat
```
이 μŠ€ν¬λ¦½νŠΈλ“€μ€ μ„œλ²„κ°€ μ’…λ£Œλ˜λ©΄ μžλ™μœΌλ‘œ μž¬μ‹œμž‘ν•©λ‹ˆλ‹€.
### 방법 2: 직접 μ‹€ν–‰
```bash
python run.py
```
## μ„œλ²„ μƒνƒœ 확인
포트 5001이 μ—΄λ €μžˆλŠ”μ§€ 확인:
```powershell
netstat -ano | Select-String ":5001" | Select-String "LISTENING"
```
## 문제 ν•΄κ²°
### μ„œλ²„κ°€ μ‹œμž‘λ˜μ§€ μ•ŠλŠ” 경우
1. Python이 μ„€μΉ˜λ˜μ–΄ μžˆλŠ”μ§€ 확인:
```bash
python --version
```
2. ν•„μš”ν•œ λΌμ΄λΈŒλŸ¬λ¦¬κ°€ μ„€μΉ˜λ˜μ–΄ μžˆλŠ”μ§€ 확인:
```bash
pip install -r requirements.txt
```
3. 포트 5001이 λ‹€λ₯Έ ν”„λ‘œκ·Έλž¨μ—μ„œ μ‚¬μš© 쀑인지 확인:
```powershell
netstat -ano | Select-String ":5001"
```
### μ„œλ²„κ°€ 자주 μ’…λ£Œλ˜λŠ” 경우
- `start_server_background.ps1` 슀크립트λ₯Ό μ‚¬μš©ν•˜λ©΄ μžλ™μœΌλ‘œ μž¬μ‹œμž‘λ©λ‹ˆλ‹€.
- λ‘œκ·ΈλŠ” `server.log` νŒŒμΌμ— μ €μž₯λ©λ‹ˆλ‹€.
## λ°±κ·ΈλΌμš΄λ“œ μ‹€ν–‰
PowerShellμ—μ„œ λ°±κ·ΈλΌμš΄λ“œλ‘œ μ‹€ν–‰ν•˜λ €λ©΄:
```powershell
Start-Process powershell -ArgumentList "-File", "start_server_background.ps1" -WindowStyle Hidden
```
## μ„œλ²„ 쀑지
μ„œλ²„λ₯Ό μ€‘μ§€ν•˜λ €λ©΄:
1. PowerShell μ°½μ—μ„œ `Ctrl+C` λˆ„λ₯΄κΈ°
2. λ˜λŠ” μž‘μ—… κ΄€λ¦¬μžμ—μ„œ Python ν”„λ‘œμ„ΈμŠ€ μ’…λ£Œ