更多发行版本点击链接:https : //github.com/sysown/proxysql/releases
从可用存储库安装ProxySQL:
Ubuntu / Debian:
添加存储库:
apt-get install -y lsb-release
wget -O - 'https://repo.proxysql.com/ProxySQL/repo_pub_key' | apt-key add -
echo deb https://repo.proxysql.com/ProxySQL/proxysql-2.0.x/$(lsb_release -sc)/ ./ \
| tee /etc/apt/sources.list.d/proxysql.list
注意:对于1.4.x系列版本,请https://repo.proxysql.com/ProxySQL/proxysql-1.4.x/$(lsb_release -sc)/ ./改用。
安装ProxySQL:
apt-get update
apt-get install proxysql OR apt-get install proxysql=version
红帽/ CentOS:
添加存储库:
cat <<EOF | tee /etc/yum.repos.d/proxysql.repo
[proxysql_repo]
name= ProxySQL YUM repository
baseurl=https://repo.proxysql.com/ProxySQL/proxysql-2.0.x/centos/$releasever
gpgcheck=1
gpgkey=https://repo.proxysql.com/ProxySQL/repo_pub_key
EOF
注意:对于1.4.x系列版本,请https://repo.proxysql.com/ProxySQL/proxysql-1.4.x/centos/$releasever改用
安装ProxySQL:
yum install proxysql OR yum install proxysql-version