Ollama 서버 재시작: 모델 저장 위치 유지·변경·이동 (Windows·Mac)

- 재시작 메뉴: 그대로(기본) / 저장 위치 바꾸고 기존 모델 옮겨서 / 저장 위치만 바꿔서(기존 모델 그대로)
- ollama_models_change nomove, Set-OllamaModelsLocation -NoMove 추가 ('모델 저장 위치' 메뉴는 그대로)
- 서버가 꺼져 있었으면 바꾼 위치로 기동, 위치를 바꾸지 않으면 재시작하지 않음
- (Windows 19_ollama_restart.ps1, Mac 19_ollama_restart.sh)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HnDmXrFqktWwYa1cuJRAVZ
This commit is contained in:
2026-11-05 05:47:43 +00:00
parent cd003bfe39
commit f567af2dc4
9 changed files with 121 additions and 29 deletions

View File

@@ -231,7 +231,8 @@ foreach ($__src in @(
'15_webui_image_sync.ps1',
'16_factory_reset.ps1',
'17_podman_monitor.ps1',
'18_podman_server.ps1'
'18_podman_server.ps1',
'19_ollama_restart.ps1'
)) {
$__path = Join-Path $SrcDir $__src
if (-not (Test-Path -LiteralPath $__path)) {
@@ -278,7 +279,7 @@ while ($true) {
(New-MenuItem '-' "${CYAN}──────── Ollama 서버 ────────${RESET}" '-0')
(New-MenuItem 'start' "▶ Ollama 서버 기동 ${GRAY}(꺼져 있을 때만 켭니다)${RESET}")
(New-MenuItem 'stop' '■ Ollama 서버 종료')
(New-MenuItem 'restart' "↻ Ollama 서버 재시작 ${GRAY}(성능 설정을 다시 적용)${RESET}")
(New-MenuItem 'restart' "↻ Ollama 서버 재시작 ${GRAY}(성능 설정 다시 적용 · 모델 저장 위치 유지/변경/이동)${RESET}")
(New-MenuItem '-' "${CYAN}──────── 모델 ────────${RESET}" '-1')
(New-MenuItem 'installed' ' 설치된 모델 실행')
(New-MenuItem 'online' " 🔎 인터넷에서 모델 찾기·설치 ${GRAY}(ollama.com)${RESET}")
@@ -319,7 +320,7 @@ while ($true) {
'p_restart' { Clear-Host; Restart-PodmanServer; Wait-Return }
'start' { Clear-Host; [void](Start-OllamaServer); Wait-Return }
'stop' { Clear-Host; Stop-OllamaServer; Wait-Return }
'restart' { Clear-Host; [void](Restart-OllamaServer); Wait-Return }
'restart' { Show-OllamaRestartMenu; Wait-Return }
'installed' { Clear-Host; Show-InstalledMenu }
'online' { Invoke-OnlineInstallFlow }
'rec' { Show-RecMenu }