步骤二:云主机开通 创建弹性云主机弹性云主机快速入门 天翼云 创建配备GPU驱动的GPU云主机(Linux)GPU云主机用户指南创建GPU云主机 天翼云 步骤三:手动部署DeepSeek 1. 安装ollama a. 下载安装脚本 使用非天翼云DeepSeek镜像时,需要手动安装ollama,这里以 amd64 为例,将如下脚本保存到本地,命名为 installollama.sh。 plaintext !/bin/sh This script installs Ollama on Linux. It detects the current operating system architecture and installs the appropriate version of Ollama. set eu red"$( (/usr/bin/tput bold :; /usr/bin/tput setaf 1 :) 2>&)" plain"$( (/usr/bin/tput sgr0 :) 2>&)" status() { echo ">>> $" >&2; } error() { echo "${red}ERROR:${plain} $"; exit 1; } warning() { echo "${red}WARNING:${plain} $"; } TEMPDIR$(mktemp d) cleanup() { rm rf $TEMPDIR; } trap cleanup EXIT available() { command v $1 >/dev/null; } require() { local MISSING'' for TOOL in $; do if ! available $TOOL; then MISSING"$MISSING $TOOL" fi done echo $MISSING } [ "$(uname s)" "Linux" ] error 'This script is intended to run on Linux only.' ARCH$(uname m) case "$ARCH" in x8664) ARCH"amd64" ;; aarch64arm64) ARCH"arm64" ;; ) error "Unsupported architecture: $ARCH" ;; esac ISWSL2false KERN$(uname r) case "$KERN" in icrosoftWSL2 icrosoftwsl2) ISWSL2true;; icrosoft) error "Microsoft WSL1 is not currently supported. Please use WSL2 with 'wsl setversion 2'" ;; ) ;; esac VERPARAM"${OLLAMAVERSION:+?version$OLLAMAVERSION}" SUDO if [ "$(id u)" ne 0 ]; then