File size: 411 Bytes
95744d9
 
 
 
 
6b19707
95744d9
 
 
6b19707
95744d9
6b19707
 
 
95744d9
6b19707
95744d9
 
6b19707
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

#!/usr/bin/bash

echo "calling process one......!"

curl https://ollama.ai/install.sh | sh

echo "ollama installed here..."

ollama serve &
# nohup ollama serve > output.log 2>&1 &
mkdir -p /etc/systemd/system/ollama.service.d
echo "[Service]" >>/etc/systemd/system/ollama.service.d/environment.conf
echo "ollama served"

ollama run llama2 &
# nohup ollama run llama2 > output.log 2>&1 &

echo "llama2 running"