#!/bin/bash apt-get update -y apt install -y python3-pip git python3 # 安装路径 Path="/root" # Python的绝对路径 Pythonpath="/usr/bin/python3" if [ `command -v pip3` ];then echo 'pip3 已经安装' else echo -e "\033[31m Error:未安装pip3 请自行安装 \033[0m" exit fi #安装 cd $Path git clone https://github.com/nameless3721/SSRClash.git cd $Path/SSRClash pip3 install requests flask-restful # 建立服务 cat > /etc/systemd/system/SSRClash.service <