Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
133770a5
Unverified
Commit
133770a5
authored
Sep 04, 2024
by
Tomoya Fujita
Committed by
GitHub
Sep 04, 2024
Browse files
docs: add group to manual Linux isntructions and verify service is running (#6430)
parent
f36ebfb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
docs/linux.md
docs/linux.md
+6
-3
No files found.
docs/linux.md
View file @
133770a5
...
@@ -35,10 +35,11 @@ curl -fsSL https://ollama.com/download/ollama-linux-amd64-rocm.tgz | sudo tar zx
...
@@ -35,10 +35,11 @@ curl -fsSL https://ollama.com/download/ollama-linux-amd64-rocm.tgz | sudo tar zx
### Adding Ollama as a startup service (recommended)
### Adding Ollama as a startup service (recommended)
Create a user for Ollama:
Create a user
and group
for Ollama:
```
bash
```
bash
sudo
useradd
-r
-s
/bin/false
-m
-d
/usr/share/ollama ollama
sudo
useradd
-r
-s
/bin/false
-U
-m
-d
/usr/share/ollama ollama
sudo
usermod
-a
-G
ollama
$(
whoami
)
```
```
Create a service file in
`/etc/systemd/system/ollama.service`
:
Create a service file in
`/etc/systemd/system/ollama.service`
:
...
@@ -54,6 +55,7 @@ User=ollama
...
@@ -54,6 +55,7 @@ User=ollama
Group
=
ollama
Group
=
ollama
Restart
=
always
Restart
=
always
RestartSec
=
3
RestartSec
=
3
Environment
=
"PATH=$PATH"
[Install]
[Install]
WantedBy
=
default.target
WantedBy
=
default.target
...
@@ -83,10 +85,11 @@ Make sure to install ROCm v6
...
@@ -83,10 +85,11 @@ Make sure to install ROCm v6
### Start Ollama
### Start Ollama
Start Ollama
using
`systemd`
:
Start Ollama
and verify it is running
:
```
bash
```
bash
sudo
systemctl start ollama
sudo
systemctl start ollama
sudo
systemctl status ollama
```
```
## Update
## Update
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment