# 参考地址
http://proxysql.com/documentation/installing-proxysql
apt-get install -y --no-install-recommends lsb-release wget apt-transport-https ca-certificates gnupg
# Add repository key
wget -nv -O /etc/apt/trusted.gpg.d/proxysql-3.0.x-keyring.gpg \
'https://repo.proxysql.com/ProxySQL/proxysql-3.0.x/repo_pub_key.gpg'
# Add repository
echo deb https://repo.proxysql.com/ProxySQL/proxysql-3.0.x/$(lsb_release -sc)/ ./ \
| tee /etc/apt/sources.list.d/proxysql.list
# 不同版本的地址,这个不依赖其它的包直接下载下来dpkg -i 包名 直接安装就行
https://repo.proxysql.com/ProxySQL/proxysql-2.4.x/
# Install
apt-get update
# 查找指定版本
apt-cache madison proxysql
# 安装
apt-get install proxysql
```bash