由于部分 LLM 需要自启动执行,故简要记录一下。

命令

$ scp ./feedback-ai.tar.gz root@xx.xx.xx.xx:/root
$ ssh root@xx.xx.xx.xx

remote

$ cd /root

# unzip archive
$ tar -zxvf feedback-ai.tar.gz
$ unzip -a Archive.zip

$ cd feedback-ai
$ pip3.11 install -r ./requirements.txt
$ python3.11

Python Execute Path

$ which python3.11
$ where python3.11

AutoStart Scripts

#!/bin/bash

now=$(date +"%I:%M:%S")
echo "autostart.sh at $now" >> /root/log


nvidia-smi >> /root/log

nohup /usr/local/bin/python3.11 /root/ai/index.py >> /root/ai/log &

now=$(date +"%I:%M:%S")
echo "autostart.sh end $now" >> /root/log