Mac OSでOllama server (6)一周まわって公式版のollamaに挑戦デーモン化
Mac OSでOllama server (5)一周まわって公式版のollamaに挑戦 でユーザー管理化では起動できるようになった。ただ、ユーザーがログインしないと使えないので、これをデーモン化する。 ユーザーログインしている状態でSSHから launchctl unload -w ~/Library/LaunchAgents/com.ollama.server.plist mv launchctl unload -w ~/Library/LaunchAgents/com.ollama.server.plist launchctl unload -w ~/Library/LaunchAgents/com.ollama.server.plist.old でファイル名も変えておく。 /Library/LaunchAgents/com.ollama.server.plist を新しく作る。内容は <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://apple.com"> <plist version="1.0"> <dict> <key>Label</key> <string>com.ollama.server</string> <key>UserName</key> <string>ollamauser</string> <key>GroupName</key> <string>staff</string> <key>ProgramArguments</key> <array> ...