aws服务器安装运行ollama

执行一行命令即可自动完成下载、安装和部署 server 和 client

curl -fsSL https://ollama.com/install.sh | sh

1、该命令自动创建ollama systemd service并在后台启动

2、该命令默认开放的是127.0.0.1:11434,如需开放外网访问,需配置/etc/systemd/system/ollama.service

>>> Creating ollama user…
&gt…


This content originally appeared on DEV Community and was authored by drake

  • 执行一行命令即可自动完成下载、安装和部署 server 和 client
curl -fsSL https://ollama.com/install.sh | sh

1、该命令自动创建ollama systemd service并在后台启动

2、该命令默认开放的是127.0.0.1:11434,如需开放外网访问,需配置/etc/systemd/system/ollama.service

>>> Creating ollama user...
>>> Adding ollama user to render group...
>>> Adding ollama user to video group...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
>>> Enabling and starting ollama service...
Created symlink /etc/systemd/system/default.target.wants/ollama.service → /etc/systemd/system/ollama.service.
>>> The Ollama API is now available at 127.0.0.1:11434.
>>> Install complete. Run "ollama" from the command line.

3、ollama自动创建 Ollama 用户和 Ollama 用户组,并且将当前的用户添加到 Ollama 组,比如:“ec2-user”,是当前用户可以直接执行ollama client命令,不需要加sudo

4、自动添加开机启动


This content originally appeared on DEV Community and was authored by drake


Print Share Comment Cite Upload Translate Updates
APA

drake | Sciencx (2025-02-19T02:59:54+00:00) aws服务器安装运行ollama. Retrieved from https://www.scien.cx/2025/02/19/aws%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e8%bf%90%e8%a1%8collama/

MLA
" » aws服务器安装运行ollama." drake | Sciencx - Wednesday February 19, 2025, https://www.scien.cx/2025/02/19/aws%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e8%bf%90%e8%a1%8collama/
HARVARD
drake | Sciencx Wednesday February 19, 2025 » aws服务器安装运行ollama., viewed ,<https://www.scien.cx/2025/02/19/aws%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e8%bf%90%e8%a1%8collama/>
VANCOUVER
drake | Sciencx - » aws服务器安装运行ollama. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/02/19/aws%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e8%bf%90%e8%a1%8collama/
CHICAGO
" » aws服务器安装运行ollama." drake | Sciencx - Accessed . https://www.scien.cx/2025/02/19/aws%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e8%bf%90%e8%a1%8collama/
IEEE
" » aws服务器安装运行ollama." drake | Sciencx [Online]. Available: https://www.scien.cx/2025/02/19/aws%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e8%bf%90%e8%a1%8collama/. [Accessed: ]
rf:citation
» aws服务器安装运行ollama | drake | Sciencx | https://www.scien.cx/2025/02/19/aws%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e8%bf%90%e8%a1%8collama/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.